let coinbase_tx = context.mine_blocks(1)[0].txdata[0].txid();
context.index.assert_inscription_location(
inscription_id,
SatPoint {
outpoint: OutPoint {
txid: coinbase_tx,
vout: 0,
},
offset: 50 * COIN_VALUE,
},
Some(50 * COIN_VALUE),
);
}
}
#[test]
fn lost_inscriptions() {
for context in Context::configurations() {
context.mine_blocks(1);
let txid = context.rpc_server.broadcast_tx(TransactionTemplate {
inputs: &[(1, 0, 0, inscription("text/plain", "hello").to_witness())],
fee: 50 * COIN_VALUE,
..Default::default()
});
let inscription_id = InscriptionId { txid, index: 0 };
context.mine_blocks_with_subsidy(1, 0);
context.index.assert_inscription_location(
inscription_id,
SatPoint {
outpoint: OutPoint::null(),
offset: 0,
},
Some(50 * COIN_VALUE),
);
}
}
#[test]
fn multiple_inscriptions_can_be_lost() {