From 26b460986052d7560d5d699e3914b026180ac438 Mon Sep 17 00:00:00 2001 From: Michael Bisgaard Olesen Date: Fri, 26 Apr 2024 10:21:55 +0200 Subject: [PATCH] Fix --- tools/transfer-client/src/main.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tools/transfer-client/src/main.rs b/tools/transfer-client/src/main.rs index bc79c0d..31653fa 100644 --- a/tools/transfer-client/src/main.rs +++ b/tools/transfer-client/src/main.rs @@ -1,7 +1,10 @@ use anyhow::{anyhow, Result}; use chrono::{Duration, Utc}; use clap::Parser; -use concordium_rust_sdk::types::{transactions::ExactSizeTransactionSigner, Memo, WalletAccount}; +use concordium_rust_sdk::{ + common::types::Amount as ConcordiumAmount, + types::{transactions::ExactSizeTransactionSigner, Memo, WalletAccount} +}; use reqwest::{blocking::*, Url}; use rosetta::models::*; use serde_json::value::Value; @@ -32,7 +35,7 @@ struct Args { #[clap(long = "receiver", help = "Address of the account receiving the transfer.")] receiver_addr: String, #[clap(long = "amount", help = "Amount of CCD to transfer.")] - amount: Amount, + amount: ConcordiumAmount, #[clap( long = "memo-hex", help = "Hex-encoded memo to attach to the transaction.", @@ -79,7 +82,7 @@ fn main() -> Result<()> { let receiver_addr = args.receiver_addr; let amount = args.amount; let operations = - test_transfer_operations(sender_account.address.to_string(), receiver_addr, amount); + test_transfer_operations(sender_account.address.to_string(), receiver_addr, amount.micro_ccd as i64); // Perform transfer. let preprocess_response =