Disallow codecopy and codesize in pure functions.

This commit is contained in:
Daniel Kirchner
2022-01-31 19:36:25 +01:00
parent 814e233b67
commit d6d286b39b
6 changed files with 12 additions and 2 deletions
+2
View File
@@ -351,6 +351,8 @@ bool SemanticInformation::invalidInPureFunctions(Instruction _instruction)
case Instruction::ORIGIN:
case Instruction::CALLER:
case Instruction::CALLVALUE:
case Instruction::CODESIZE:
case Instruction::CODECOPY:
case Instruction::CHAINID:
case Instruction::BASEFEE:
case Instruction::GAS: