.unwrap()
.inscription_number,
-2
);
assert_eq!(
vec![
cursed,
reinscription_on_cursed,
second_reinscription_on_cursed
],
context
.index
.get_inscriptions_on_output_with_satpoints(OutPoint { txid, vout: 0 })
.unwrap()
.iter()
.map(|(_satpoint, inscription_id)| *inscription_id)
.collect::<Vec<InscriptionId>>()
)
}
}
#[test]
fn reinscriptions_on_output_correctly_ordered_and_transferred() {
for context in Context::configurations() {
context.mine_blocks(1);
let txid = context.rpc_server.broadcast_tx(TransactionTemplate {
inputs: &[(
1,
0,
0,
inscription("text/plain;charset=utf-8", "hello").to_witness(),
)],
..Default::default()
});
let first = InscriptionId { txid, index: 0 };
context.mine_blocks(1);
let txid = context.rpc_server.broadcast_tx(TransactionTemplate {