Skip to content

Add address asset and uint256 amount in the MessageContext on connected chain #426

@lumtis

Description

@lumtis

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:

struct MessageContext {
    address sender;
    address asset;
    uint256 amount;
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions