Extend the Calculator
Assignment- Extend calculator functionality
Now let's add a third feature to the calculator: adding three numbers. We want you to practice handling different amounts of parameters depending on the action to perform, so your task will be to add a tripleSum function that sums up three values of the type uint.
You will need to:
- Add the
trippleSumaction to the enum file - Add a new encode helper and send function to the sender contract
- Add a new route to the receiver and implement the
tripleSumfunction
Check out the solution under contracts/interchain-messaging/invoking-functions in the Avalanche-Starter-Kit on the interchain-messaging branch.
Is this guide helpful?



