diff --git a/demos/rust-cosmos-broadcaster-client/Cargo.toml b/demos/rust-cosmos-broadcaster-client/Cargo.toml index 8a9c884013..2a8074fcca 100644 --- a/demos/rust-cosmos-broadcaster-client/Cargo.toml +++ b/demos/rust-cosmos-broadcaster-client/Cargo.toml @@ -21,4 +21,5 @@ cosmrs = { git = "https://github.com/neacsu/cosmos-rust", branch = "neacsu/feegr tokio = { version = "1.24.1", features = ["rt-multi-thread", "macros"] } ts-rs = "6.1.2" bs58 = "0.5.0" - +serde = { workspace = true, features = ["derive"] } +serde_json = { workspace = true } diff --git a/demos/rust-cosmos-broadcaster-client/src/commands/commands.rs b/demos/rust-cosmos-broadcaster-client/src/commands/commands.rs index 9f70ae23aa..4694e66c65 100644 --- a/demos/rust-cosmos-broadcaster-client/src/commands/commands.rs +++ b/demos/rust-cosmos-broadcaster-client/src/commands/commands.rs @@ -59,7 +59,7 @@ pub async fn offline_sign(mnemonic: bip39::Mnemonic, to: AccountId, client: &mut client.send_str(sp_address, &serde_json::to_string(&message).unwrap()).await; let res = client.wait_for_messages().await; for i in res.unwrap().iter() { - println!("{:#?}", i); + println!("{:#?}", i.message); } // parse json of res to get signer_data and chain_id, store in SeqResData struct