Create Simple Calculator Receiver
Create a contract that receives multiple parameters and execute a function
On our Avalanche L1, we need to create the receiver part of our cross-chain calculator. It will receive two numbers and store the result.
Deploy the Receiver Contract
Deploy the receiver contract on your Avalanche L1:
Then save the sender contract address (displayed in Deployed To:
) in an environment variable: