..Default::default() }, )], [ ( OutPoint { txid: txid2, vout: 0, }, vec![(id, 1000)], ), ( OutPoint { txid: txid1, vout: 0, }, vec![(id, 1000)], ), ], ); } #[test] fn open_etchings_can_be_limited_to_term() { 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 { inputs: &[(1, 0, 0, Witness::new())], op_return: Some( Runestone { etching: Some(Etching { rune: Rune(RUNE), limit: Some(1000), term: Some(2), ..Default::default() }), ..Default::default() } .encipher(), ), ..Default::default() }); context.mine_blocks(1); let id = RuneId { height: 2,