diff --git a/src/subcommand/server.rs b/src/subcommand/server.rs index 376d27d33d..078361088e 100644 --- a/src/subcommand/server.rs +++ b/src/subcommand/server.rs @@ -6261,19 +6261,15 @@ next }; server.assert_response( - format!("/r/children/{parent_inscription_id}"), + format!("/r/children/{parent_inscription_id}/inscriptions/at/-1"), StatusCode::NOT_FOUND, &format!("inscription {parent_inscription_id} not found"), ); server.mine_blocks(1); - let children_json = - server.get_json::(format!("/r/children/{parent_inscription_id}")); - assert_eq!(children_json.ids.len(), 0); - let mut builder = script::Builder::new(); - for _ in 0..111 { + for _ in 0..70 { builder = Inscription { content_type: Some("text/plain".into()), body: Some("hello".into()), @@ -6292,11 +6288,11 @@ next }); server.mine_blocks(1); - let latest_child_inscription_id = InscriptionId { txid, index: 110 }; - let children_json = server.get_json::(format!( + let latest_child_inscription_id = InscriptionId { txid, index: 69 }; + let child_json = server.get_json::(format!( "/r/children/{parent_inscription_id}/inscriptions/at/-1" )); - assert_eq!(children_json.id, latest_child_inscription_id); + assert_eq!(child_json.id, latest_child_inscription_id); } #[test]