Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
casey committed Apr 11, 2024
1 parent 4c64d8d commit 397b811
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions crates/ordinals/src/runestone.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2160,19 +2160,18 @@ mod tests {
#[test]
fn all_non_pushdata_opcodes_are_invalid() {
for i in 79..=u8::MAX {
let mut script_pubkey = Vec::new();

script_pubkey.push(opcodes::all::OP_RETURN.to_u8());
script_pubkey.push(Runestone::MAGIC_NUMBER.to_u8());
script_pubkey.push(i);

assert_eq!(
Runestone::decipher(&Transaction {
version: 2,
lock_time: LockTime::ZERO,
input: default(),
output: vec![TxOut {
script_pubkey: script_pubkey.into(),
script_pubkey: vec![
opcodes::all::OP_RETURN.to_u8(),
Runestone::MAGIC_NUMBER.to_u8(),
i
]
.into(),
value: 0,
},],
})
Expand Down

0 comments on commit 397b811

Please sign in to comment.