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
Feel free to close this if you think this is a silly idea. I think we can implement transfer_from for native tokens easily enough by having it take a MessageInfo struct and then doing may_pay on it and returning no messages to be executed.
It's a bit of a break from the normal interface of this package, but I think semantically those are the same thing. For example:
let maybe_message = asset.transfer_from("ekez", info)?;
If ekez is the sender and the funds are included in the funds field it feels to me that the cw20 and native versions are the same here.
The text was updated successfully, but these errors were encountered:
Feel free to close this if you think this is a silly idea. I think we can implement
transfer_from
for native tokens easily enough by having it take aMessageInfo
struct and then doingmay_pay
on it and returning no messages to be executed.It's a bit of a break from the normal interface of this package, but I think semantically those are the same thing. For example:
If
ekez
is the sender and the funds are included in thefunds
field it feels to me that the cw20 and native versions are the same here.The text was updated successfully, but these errors were encountered: