Skip to content

Commit 902e550

Browse files
Merge remote-tracking branch 'origin/main'
2 parents f88f5db + 0ae8909 commit 902e550

File tree

4 files changed

+7
-9
lines changed

4 files changed

+7
-9
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "bitcoin_da_client"
3-
version = "0.1.5"
3+
version = "0.1.6"
44
edition = "2021"
55
authors = ["SYS LABS [email protected]"]
66
description = "Tools for interacting with BitcoinDA by SYS LABS"

src/lib.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -420,10 +420,8 @@ impl SyscoinClient {
420420
blob_id
421421
};
422422

423-
// Use named parameters but don't request actual data
424-
let params = vec![json!({
425-
"versionhash_or_txid": actual_blob_id,
426-
})];
423+
// Use positional parameter: (versionhash_or_txid: String)
424+
let params = vec![json!(actual_blob_id)];
427425

428426
let response = self.rpc_client.call("getnevmblobdata", &params).await?;
429427

tests/lib_test.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -397,9 +397,9 @@ mod tests {
397397
// Verify the request was made with the correct parameters
398398
mock_server
399399
.mock("POST", "/")
400-
.match_body(mockito::Matcher::JsonString(format!(
401-
r#"{{"jsonrpc":"2.0","id":1,"method":"getnevmblobdata","params":[{{"versionhash_or_txid":"deadbeef"}}]}}"#
402-
)))
400+
.match_body(mockito::Matcher::JsonString(
401+
r#"{"jsonrpc":"2.0","id":1,"method":"getnevmblobdata","params":["deadbeef"]}"#.to_string()
402+
))
403403
.with_status(200)
404404
.with_header("content-type", "application/json")
405405
.with_body(mock_response.to_string())

0 commit comments

Comments
 (0)