Rise In Logo



Learn everything about 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

Optional

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

Project

Comments

You need to enroll in the course to be able to comment!

Stay in the know

Never miss updates on new programs and opportunities.

Rise In Logo

Rise together in web3!

Disclaimer: The information /programs / events provided on https://patika.dev and https://risein.com are strictly for upskilling and networking purposes related to the technical infrastructure of blockchain platforms. We do not provide financial or investment advice and do not make any representations regarding the value, profitability, or future price of any blockchain or cryptocurrency. Users are encouraged to conduct their own research and consult with licensed financial professionals before engaging in any investment activities. https://patika.dev and https://risein.com disclaim any responsibility for financial decisions made by users based on information provided here.