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
Among ExperimentalCycles.add<system> provide also ExperimentalCycles.addFrom<system>
let add : (amount : Nat) -> ()
let addFrom : (subaccount: ?Blob, amount : Nat) -> ();
It should work like add but take cycles from the subaccount.
Also:
let balance : (subaccount: ?Blob) -> (amount : Nat)
Currently I write code that ping-pongs cycles between the subaccount and main account, spending transfer fees in the way. (When it is on subaccount, it can be accounted for a particular user. When on the main account, I can call add<system>) That's not good, that I can't do both.
The text was updated successfully, but these errors were encountered:
Among
ExperimentalCycles.add<system>
provide alsoExperimentalCycles.addFrom<system>
It should work like
add
but take cycles from the subaccount.Also:
Currently I write code that ping-pongs cycles between the subaccount and main account, spending transfer fees in the way. (When it is on subaccount, it can be accounted for a particular user. When on the main account, I can call
add<system>
) That's not good, that I can't do both.The text was updated successfully, but these errors were encountered: