offset: 0,
},
None,
);
assert_eq!(
context
.index
.get_inscription_entry(second_inscription_id)
.unwrap()
.unwrap()
.inscription_number,
-1
);
}
}
#[test]
fn multiple_inscriptions_in_same_tx_all_but_first_input_are_cursed() {
for context in Context::configurations() {
context.mine_blocks(1);
context.mine_blocks(1);
context.mine_blocks(1);
let witness = envelope(&[b"ord", &[1], b"text/plain;charset=utf-8", &[], b"bar"]);
let txid = context.rpc_server.broadcast_tx(TransactionTemplate {
inputs: &[
(1, 0, 0, witness.clone()),
(2, 0, 0, witness.clone()),
(3, 0, 0, witness.clone()),
],
..Default::default()
});
let first = InscriptionId { txid, index: 0 };
let second = InscriptionId { txid, index: 1 };
let third = InscriptionId { txid, index: 2 };
context.mine_blocks(1);
context.index.assert_inscription_location(