});
let id = InscriptionId { txid, index: 0 };
server.mine_blocks(1);
server.assert_response_regex(
format!("/inscription/{id}"),
StatusCode::OK,
format!(
".*
Inscription -1
.*
- id
- {id}
- charms
-
👹
.*
.*
"
),
);
}
#[test]
fn charm_uncommon() {
let server = TestServer::new_with_regtest_with_index_sats();
server.mine_blocks(2);
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}
- charms
-
🌱