Disallow RETURNDATASIZE and RETURNDATACOPY in inline assembly blocks in pure functions

(cherry picked from commit f567eb1fb2)

quick fix to pass failing test at ./test/externalTests/ens.sh (line 80) -- Should be removed when 0.9 is released.
This commit is contained in:
Kamil Śliwak
2022-05-20 09:31:27 -03:00
committed by Matheus Aguiar
parent 00fb31c8cc
commit 7f4f655cca
10 changed files with 44 additions and 34 deletions
+2
View File
@@ -481,6 +481,8 @@ bool SemanticInformation::invalidInPureFunctions(Instruction _instruction)
case Instruction::EXTCODESIZE:
case Instruction::EXTCODECOPY:
case Instruction::EXTCODEHASH:
case Instruction::RETURNDATASIZE:
case Instruction::RETURNDATACOPY:
case Instruction::BLOCKHASH:
case Instruction::COINBASE:
case Instruction::TIMESTAMP: