- This contract is for educational purposes and it’s not recommended to use it in real life projects
- Go to tests to check the way the contract can be updated and how you can use the implemented contracts
- It checks that uses
Logic1
to updatex
- It checks that makes an upgrade from
Logic1
toLogic2
and changesx
withLogic2.changeX()
- It checks that
Logic2.tripleX()
can be called - It checks that
x
value set in the first implementation is updated in the second implementation withLogic2.tripleX()
- It checks that uses
- Try the tests with
npm run test
ornpx hardhat test