mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Disallow codecopy and codesize in pure functions.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user