Edict {
id: id.into(),
amount: 1000,
output: 1,
},
],
..Default::default()
}
.encipher(),
),
..Default::default()
});
context.mine_blocks(1);
context.assert_runes(
[(
id,
RuneEntry {
etching: txid0,
rune: Rune(RUNE),
supply: u128::max_value(),
timestamp: 2,
..Default::default()
},
)],
[
(
OutPoint {
txid: txid1,
vout: 0,
},
vec![(id, u128::max_value() / 2)],
),
(
OutPoint {
txid: txid1,
vout: 1,
},
vec![(id, u128::max_value() / 2 + 1)],
),
],
);
}
#[test]
fn split_with_amount() {
let context = Context::builder()
.arg("--index-runes-pre-alpha-i-agree-to-get-rekt")
.build();
context.mine_blocks(1);
let txid0 = context.rpc_server.broadcast_tx(TransactionTemplate {