.unwrap() .unwrap() .inscription_number, -2 ); } } #[test] fn multiple_inscriptions_same_input_are_cursed_reinscriptions() { for context in Context::configurations() { context.rpc_server.mine_blocks(1); let script = script::Builder::new() .push_opcode(opcodes::OP_FALSE) .push_opcode(opcodes::all::OP_IF) .push_slice(b"ord") .push_slice([1]) .push_slice(b"text/plain;charset=utf-8") .push_slice([]) .push_slice(b"foo") .push_opcode(opcodes::all::OP_ENDIF) .push_opcode(opcodes::OP_FALSE) .push_opcode(opcodes::all::OP_IF) .push_slice(b"ord") .push_slice([1]) .push_slice(b"text/plain;charset=utf-8") .push_slice([]) .push_slice(b"bar") .push_opcode(opcodes::all::OP_ENDIF) .push_opcode(opcodes::OP_FALSE) .push_opcode(opcodes::all::OP_IF) .push_slice(b"ord") .push_slice([1]) .push_slice(b"text/plain;charset=utf-8")