You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// we are transferring from the canisters default subaccount, therefore we don't need to specify it
217
214
from_subaccount = null;
218
215
// we take the principal and subaccount from the arguments and convert them into an account identifier
219
-
to = Blob.toArray(Principal.toLedgerAccount(args.toPrincipal, args.toSubaccount));
216
+
to = Principal.toLedgerAccount(args.toPrincipal, args.toSubaccount);
220
217
// a timestamp indicating when the transaction was created by the caller; if it is not specified by the caller then this is set to the current ICP time
// we are transferring from the canisters default subaccount, therefore we don't need to specify it
39
36
from_subaccount =null;
40
37
// we take the principal and subaccount from the arguments and convert them into an account identifier
41
-
to =Blob.toArray(Principal.toLedgerAccount(args.toPrincipal, args.toSubaccount));
38
+
to =Principal.toLedgerAccount(args.toPrincipal, args.toSubaccount);
42
39
// a timestamp indicating when the transaction was created by the caller; if it is not specified by the caller then this is set to the current ICP time
0 commit comments