Implemented block.basefee in Solidilty and basefee() in Yul.

Also added basefee to Yul grammar.
This commit is contained in:
hrkrshnn
2021-08-09 16:18:08 +02:00
parent d92b211a2f
commit 95091f6b58
6 changed files with 16 additions and 2 deletions
+2
View File
@@ -695,6 +695,8 @@ bool AsmAnalyzer::validateInstructions(evmasm::Instruction _instr, SourceLocatio
errorForVM(1561_error, "only available for Istanbul-compatible");
else if (_instr == evmasm::Instruction::SELFBALANCE && !m_evmVersion.hasSelfBalance())
errorForVM(7721_error, "only available for Istanbul-compatible");
else if (_instr == evmasm::Instruction::BASEFEE && !m_evmVersion.hasBaseFee())
errorForVM(5430_error, "only available for London-compatible");
else if (_instr == evmasm::Instruction::PC)
m_errorReporter.error(
2450_error,