Mock Receivers
A brief overview of the mock ERC20 and native token receivers used for testing in sendAndCall functions.
The primary purpose of these mock contracts is to test cross-chain token transfers and execute contract logic. These contracts implement the IERC20SendAndCallReceiver
and INativeSendAndCallReceiver
interfaces to handle token transfers, either for ERC20 tokens or native tokens, across Avalanche L1s.
This contract only performs the following actions:
- Checks if the message was received from a blocked sender.
- Emits a TokensReceived event.
- Checks if the payload is empty.
- Receives tokens to itself.