Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example tools: Add support for providing memo as string #62

Merged
merged 13 commits into from
Apr 30, 2024
8 changes: 5 additions & 3 deletions tools/query-account/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,16 @@ struct Args {
fn main() -> Result<()> {
// Parse CLI args.
let args = Args::parse();
let url = args.url;
let network = args.network;
let address = args.address;

// Constants.
let network_id = NetworkIdentifier::new("concordium".to_string(), args.network);
let network_id = NetworkIdentifier::new("concordium".to_string(), network);

// Configure HTTP client.
let base_url = Url::parse(args.url.as_str())?;
let base_url = Url::parse(url.as_str())?;
let client = Client::builder().connection_verbose(true).build()?;
let address = args.address;

let mut next_from_height = 0;
let mut computed_balance: i128 = call_rosetta_balance(
Expand Down
Loading
Loading