txid: txid1,
vout: 0,
},
vec![(id, 1000)],
)],
);
context.rpc_server.broadcast_tx(TransactionTemplate {
inputs: &[(3, 0, 0, Witness::new())],
op_return: Some(
Runestone {
edicts: vec![Edict {
id: u128::from(id) | CLAIM_BIT,
amount: 1000,
output: 0,
}],
..Default::default()
}
.encipher(),
),
..Default::default()
});
context.mine_blocks(1);
context.assert_runes(
[(
id,
RuneEntry {
etching: txid0,
rune: Rune(RUNE),
limit: Some(1000),
supply: 1000,
end: Some(4),
timestamp: 2,
..Default::default()
},
)],
[(
OutPoint {
txid: txid1,
vout: 0,
},
vec![(id, 1000)],
)],
);
}
#[test]
fn open_etchings_with_term_zero_cannot_be_minted() {
let context = Context::builder()
.arg("--index-runes-pre-alpha-i-agree-to-get-rekt")