File tree 3 files changed +7
-3
lines changed
3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 2
2
3
3
# UNRELEASED
4
4
5
+ ### chore: use ` account_balance ` instead of the legacy ` account_balance_dfx `
6
+
7
+ Use the ` account_balance ` rather than the legacy ` account_balance_dfx ` on the ICP ledger.
8
+
5
9
### feat: Extend ` dfx ledger transfer ` and ` dfx ledger balance ` to support ICRC-1 standard
6
10
7
11
Extend ` dfx ledger transfer ` and ` dfx ledger balance ` to support [ ICRC-1 standard] ( https://github.com/dfinity/ICRC-1/tree/main/standards/ICRC-1 ) .
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ pub struct Memo(pub u64);
121
121
122
122
#[ derive( CandidType ) ]
123
123
pub struct AccountBalanceArgs {
124
- pub account : String ,
124
+ pub account : AccountIdBlob ,
125
125
}
126
126
127
127
#[ derive( CandidType ) ]
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ use icrc_ledger_types::icrc2::transfer_from::TransferFromError;
36
36
use slog:: { info, Logger } ;
37
37
use std:: time:: { SystemTime , UNIX_EPOCH } ;
38
38
39
- const ACCOUNT_BALANCE_METHOD : & str = "account_balance_dfx " ;
39
+ const ACCOUNT_BALANCE_METHOD : & str = "account_balance " ;
40
40
const TRANSFER_METHOD : & str = "transfer" ;
41
41
42
42
pub async fn balance (
@@ -52,7 +52,7 @@ pub async fn balance(
52
52
let ( result, ) = canister
53
53
. query ( ACCOUNT_BALANCE_METHOD )
54
54
. with_arg ( AccountBalanceArgs {
55
- account : acct. to_string ( ) ,
55
+ account : acct. to_address ( ) ,
56
56
} )
57
57
. build ( )
58
58
. call ( )
You can’t perform that action at this time.
0 commit comments