Rise In Logo

Build on Solana

In this homework, you will modify the transfer amount in out existing logic. Currently it is transferring all the balance source account holds. Instead let's change this to a defined amount.

Step 1

Modify this line: let amount = source_account.amount so that it will transfer a hard coded amount.

Step 2

Run cargo test to make sure project is still working


Instead of hard coding the amount, you can get the amount as input from the user and then transfer that amount of tokens.


Rise In Logo

Rise together in web3