server.assert_response_regex(
format!("/inscription/{id}"),
StatusCode::OK,
format!(
".*
Inscription -1
.*
- id
- {id}
- charms
-
👹
🔓
.*
.*
"
),
);
}
#[test]
fn charm_lost() {
let server = TestServer::new_with_regtest();
server.mine_blocks(1);
let txid = server.bitcoin_rpc_server.broadcast_tx(TransactionTemplate {
inputs: &[(1, 0, 0, inscription("text/plain", "foo").to_witness())],
..Default::default()
});
let id = InscriptionId { txid, index: 0 };
server.mine_blocks(1);
server.assert_response_regex(
format!("/inscription/{id}"),
StatusCode::OK,
format!(
".*Inscription 0
.*
- id
- {id}
- output value
- 5000000000
.*
.*
"
),
);
server.bitcoin_rpc_server.broadcast_tx(TransactionTemplate {