Migration
- 1.Write a contract which can store a
uint
calledscore
and the contract calledScore.
- 2.Implement a
getter()
andsetter(uint)
function for it. - 3.Deploy the contract
- 4.Test it with Remix IDE
- 5.Write another contract named ScoreV2
- 6.Change the implementation of
setter(uint)
function to add 1 to the value that is being set - 7.Deploy ScoreV2
- 8.Test it
- Add more variables to the ScoreV2
- Add more functions to the ScoreV2
- Implement ScoreV2 in such a way that it uses Score under the hood
Last modified 4yr ago