File tree 2 files changed +2
-12
lines changed
motoko/token_transfer_from
src/token_transfer_from_backend
2 files changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -184,14 +184,9 @@ import Error "mo:base/Error";
184
184
185
185
actor {
186
186
187
- type Account = {
188
- owner : Principal;
189
- subaccount : ? [Nat8];
190
- };
191
-
192
187
type TransferArgs = {
193
188
amount : Nat;
194
- toAccount : Account;
189
+ toAccount : Icrc1Ledger. Account;
195
190
};
196
191
197
192
public shared ({ caller }) func transfer(args : TransferArgs) : async Result.Result< Icrc1Ledger.BlockIndex, Text> {
Original file line number Diff line number Diff line change @@ -7,14 +7,9 @@ import Error "mo:base/Error";
7
7
8
8
actor {
9
9
10
- type Account = {
11
- owner : Principal ;
12
- subaccount : ?[Nat8 ];
13
- };
14
-
15
10
type TransferArgs = {
16
11
amount : Nat ;
17
- toAccount : Account ;
12
+ toAccount : Icrc1Ledger . Account ;
18
13
};
19
14
20
15
public shared ({ caller }) func transfer(args : TransferArgs ) : async Result . Result < Icrc1Ledger . BlockIndex , Text > {
You can’t perform that action at this time.
0 commit comments