Timeline for Question about require keyword in solidity
Current License: CC BY-SA 4.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 26, 2018 at 13:51 | vote | accept | Chemistry | ||
Aug 26, 2018 at 13:47 | comment | added | sea212 | @GiorgiLagidze exactly | |
Aug 26, 2018 at 13:33 | comment | added | Chemistry | So If I have a function and before require keyword, I have code that does change the variables (state variables). After require fails, It's gonna still take the gas that was needed to execute commands before the require, but when the require happens, whatever change happened before the require is also lost and also the gas is taken from my account. I just wanna know exactly that if something I change in state variables before the require and when the require happens, no change will be made at all even though it happened before meeting the require? | |
Aug 26, 2018 at 13:26 | history | answered | sea212 | CC BY-SA 4.0 |