vout: 0,
},
offset: 0,
},
Some(50 * COIN_VALUE),
);
context.index.assert_inscription_location(
second_inscription_id,
SatPoint {
outpoint: OutPoint {
txid: merged_txid,
vout: 0,
},
offset: 50 * COIN_VALUE,
},
Some(100 * COIN_VALUE),
);
}
}
#[test]
fn inscriptions_that_are_sent_to_second_output_are_are_tracked_correctly() {
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())],
..Default::default()
});
let inscription_id = InscriptionId { txid, index: 0 };
context.mine_blocks(1);
context.index.assert_inscription_location(
inscription_id,
SatPoint {
outpoint: OutPoint { txid, vout: 0 },
offset: 0,
},
Some(50 * COIN_VALUE),