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
The onCall hook on connected chains has the following object:
struct MessageContext {
address sender;
}
Amount passed of Ether can be obtained with msg.value but for ERC20 there is no such information, unless it is added manually in the message, but this is an overhead for the developers that shouldn't be necessary
We should add information such as amount and asset to the context:
This is very important! It's possible to add amount to the message, but I don't know if it possible to add the asset address, I don't think there is a mapping on ZetaChain where you can get underlying asset address from ZRC-20.
The
onCall
hook on connected chains has the following object:Amount passed of Ether can be obtained with
msg.value
but for ERC20 there is no such information, unless it is added manually in the message, but this is an overhead for the developers that shouldn't be necessaryWe should add information such as amount and asset to the context:
The text was updated successfully, but these errors were encountered: