for context in Context::configurations() {
context.mine_blocks(1);
let first_txid = context.rpc_server.broadcast_tx(TransactionTemplate {
inputs: &[(1, 0, 0, inscription("text/plain", "hello").to_witness())],
fee: 50 * COIN_VALUE,
..Default::default()
});
let first_inscription_id = InscriptionId {
txid: first_txid,
index: 0,
};
context.mine_blocks_with_subsidy(1, 0);
context.mine_blocks(1);
let second_txid = context.rpc_server.broadcast_tx(TransactionTemplate {
inputs: &[(3, 0, 0, inscription("text/plain", "hello").to_witness())],
fee: 50 * COIN_VALUE,
..Default::default()
});
let second_inscription_id = InscriptionId {
txid: second_txid,
index: 0,
};
context.mine_blocks_with_subsidy(1, 0);
context.index.assert_inscription_location(
first_inscription_id,
SatPoint {
outpoint: OutPoint::null(),
offset: 0,
},