Deploy a Mock Receiver
Learn how to deploy a mock receiver contract.
In this section, you will deploy mock receiver contracts on the Avalanche L1.
Receiver Deployment
You can choose to deploy either the MockERC20SendAndCallReceiver
or the MockNativeSendAndCallReceiver
contract depending your token type.
Save Receiver Address
After deployment, save the Deployed to
address in an environment variable for future use.
Send Tokens
Use the following command to send tokens to the mock receiver contract:
Verify the Results
Check the logs and emitted events to verify that the tokens were received correctly.
TBD: Provide instructions
After successfully deploying the contract, move on to testing the mock receivers.