lock_time: locktime::absolute::LockTime::ZERO, version: 0, }), Ok(None) ); } #[test] fn deciphering_transaction_with_bare_op_return_returns_none() { assert_eq!( Runestone::decipher(&Transaction { input: Vec::new(), output: vec![TxOut { script_pubkey: script::Builder::new() .push_opcode(opcodes::all::OP_RETURN) .into_script(), value: 0 }], lock_time: locktime::absolute::LockTime::ZERO, version: 0, }), Ok(None) ); } #[test] fn deciphering_transaction_with_non_matching_op_return_returns_none() { assert_eq!( Runestone::decipher(&Transaction { input: Vec::new(), output: vec![TxOut { script_pubkey: script::Builder::new() .push_opcode(opcodes::all::OP_RETURN) .push_slice(b"FOOO") .into_script(), value: 0 }], lock_time: locktime::absolute::LockTime::ZERO, version: 0,