From 0103ae9b754bf243bcedb210de2db0b0332ad7dd Mon Sep 17 00:00:00 2001 From: mfahampshire Date: Fri, 21 Jul 2023 13:13:10 +0200 Subject: [PATCH] minor comments --- demos/rust-cosmos-broadcaster/README.md | 2 +- demos/rust-cosmos-broadcaster/bin/client.rs | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/demos/rust-cosmos-broadcaster/README.md b/demos/rust-cosmos-broadcaster/README.md index f12f15133d..415f0cb991 100644 --- a/demos/rust-cosmos-broadcaster/README.md +++ b/demos/rust-cosmos-broadcaster/README.md @@ -3,7 +3,7 @@ A demo showing how to: * sign a cosmos tx (simple token transfer) offline * broadcast this tx from a service on the other side of the mixnet -For the moment the fact its a token transfer is hardcoded, but this was just due to time constraints. This could be built out to allow for queries, custom txs, wasm contract interaction, etc. +For the moment the fact its a token transfer is hardcoded. This code could be built out to allow for queries, custom txs, wasm contract interaction, etc but goes beyond the bounds of this demo. Built using: * rust sdk diff --git a/demos/rust-cosmos-broadcaster/bin/client.rs b/demos/rust-cosmos-broadcaster/bin/client.rs index a8478fa497..dfc728175a 100644 --- a/demos/rust-cosmos-broadcaster/bin/client.rs +++ b/demos/rust-cosmos-broadcaster/bin/client.rs @@ -1,5 +1,5 @@ use clap::{Args, Parser, Subcommand}; -use nym_sdk::mixnet::{Recipient, MixnetClient}; +use nym_sdk::mixnet::Recipient; use nym_validator_client::nyxd::AccountId; use rust_cosmos_broadcaster::{ client::{offline_sign, send_tx}, @@ -48,7 +48,6 @@ async fn main() -> anyhow::Result<()> { let mut client = create_client("/tmp/cosmos-broadcaster-mixnet-client-5".into()).await; let our_address = client.nym_address(); println!("\nclient's nym address: {our_address}"); - // let sp_address = Recipient::try_from_base58_string("2f499xz7AfEmsdjd9zaxEVMZ4ed5pod2AqomZ74PSdTW.6heKJmwFZMw14Yz7CKF56iyKDaBBssmNWZJHErGg5jgm@HWdr8jgcr32cVGbjisjmwnVF4xrUBRGvbw86F9e3rFzS").unwrap(); match cli.command { Some(Commands::OfflineSignTx(OfflineSignTx {