Closed crusso closed 2 years ago
Trying to extend Lisa's hello_cycles example, I noticed that the typing of
lib:did
Wallet.wallet_receive : () -> ()
and (the implicitly expected type) of the principal in wallet_send are different:
wallet_send
wallet_receive : () -> variant { Ok : null; Err: Text};
Unless we are relying on funky properties of subtyping, that would mean that you can't send cycles to another wallet as the types don't match up.
Is that intentional or a bug?
Related to #50
(@hansl @chenyan-dfinity @p-shahi)
Resolved in #130 - arbitrary functions named wallet_receive are no longer called by the wallet.
Trying to extend Lisa's hello_cycles example, I noticed that the typing of
lib:did
and (the implicitly expected type) of the principal in
wallet_send
are different:Unless we are relying on funky properties of subtyping, that would mean that you can't send cycles to another wallet as the types don't match up.
Is that intentional or a bug?
Related to #50