![](/_next/image?url=%2Fimages%2Fgradient-top-bg.png&w=1920&q=75)
.rpc_server(&rpc_server) .run_and_deserialize_output::<Inscribe>(); let coinbase = rpc_server.mine_blocks(1)[0].txdata[0].txid(); CommandBuilder::new(format!( "wallet inscribe --file orchid.png --fee-rate 1.1 --reinscribe --satpoint {coinbase}:0:0" )) .write("orchid.png", [1; 520]) .rpc_server(&rpc_server) .expected_exit_code(1) .stderr_regex("error: reinscribe flag set but this would not be a reinscription.*") .run_and_extract_stdout(); } #[test] fn try_reinscribe_without_flag() { let rpc_server = test_bitcoincore_rpc::spawn(); rpc_server.mine_blocks(1); assert_eq!(rpc_server.descriptors().len(), 0); create_wallet(&rpc_server); let reveal_txid = CommandBuilder::new("wallet inscribe --file tulip.png --fee-rate 5.0 ") .write("tulip.png", [1; 520]) .rpc_server(&rpc_server) .run_and_deserialize_output::<Inscribe>() .reveal; assert_eq!(rpc_server.descriptors().len(), 3); rpc_server.mine_blocks(1); CommandBuilder::new(format!( "wallet inscribe --file orchid.png --fee-rate 1.1 --satpoint {reveal_txid}:0:0"
Inscription #44963901
Collection
Ord
Owner
bc1p85g58t...qmlsqu56lcID
1e78ba9de1...d8690c05i0
Detail
History
Sign Up for our Newsletter
And be the first to know about any updates!