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