op_return: Some(
Runestone {
edicts: vec![Edict {
id: id.into(),
amount: 1000,
output: 3,
}],
..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() - 1000)],
),
(
OutPoint {
txid: txid1,
vout: 1,
},
vec![(id, 1000)],
),
],
);
}
#[test]
fn split_with_amount_with_preceding_edict() {
let context = Context::builder()
.arg("--index-runes-pre-alpha-i-agree-to-get-rekt")
.build();
context.mine_blocks(1);