In Solidity v0.7 and below, addition was a simple opcode:


Which cost 3 gas units and didn't handle overflows, silently returning the overflown value.

But Solidity v0.8 made addition overflow-safe. How does the sequence of opcodes look like today?


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.