Question · Blockchain and Web3 course · Module 6: Solidity Basics
Revert
What does the 'revert' statement do in Solidity?
Answer options
- It undoes all changes and returns an error
- It resets the contract to its initial state
- It removes the contract from the blockchain
- It reverses the order of transactions
You can check the correct answer by solving this task in the CodeWorlds game.