You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Assert
In Solidity, assert(false) compiles to 0xfe, an invalid opcode, which uses up all
remaining gas and reverts all changes. When an assert() statement fails, some‐
thing very wrong and unexpected is happening, and you will need to fix your
code. You should use assert() to avoid conditions that should never, ever occur.
This is the definition of Assert in ethereum book's Quick Glossary part.
I wonder this below sentence is true:
In Solidity, assert(false) compiles to 0xfe, an invalid opcode, which uses up all
remaining gas and reverts all changes.
After Byzantium Fork, if transaction is failed or some error occurred in smart contract, they are stopped and not consume all the gas paid for a transaction.
So, I think this sentence need to be modified.
Anyone advice ?
The text was updated successfully, but these errors were encountered:
Hello all.
This is the definition of Assert in ethereum book's Quick Glossary part.
I wonder this below sentence is true:
After Byzantium Fork, if transaction is failed or some error occurred in smart contract, they are stopped and not consume all the gas paid for a transaction.
So, I think this sentence need to be modified.
Anyone advice ?
The text was updated successfully, but these errors were encountered: