mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Added the instruction basefee.
This commit is contained in:
parent
a356059461
commit
d92b211a2f
@ -84,6 +84,7 @@ std::map<std::string, Instruction> const solidity::evmasm::c_instructions =
|
||||
{ "GASLIMIT", Instruction::GASLIMIT },
|
||||
{ "CHAINID", Instruction::CHAINID },
|
||||
{ "SELFBALANCE", Instruction::SELFBALANCE },
|
||||
{ "BASEFEE", Instruction::BASEFEE },
|
||||
{ "POP", Instruction::POP },
|
||||
{ "MLOAD", Instruction::MLOAD },
|
||||
{ "MSTORE", Instruction::MSTORE },
|
||||
@ -230,6 +231,7 @@ static std::map<Instruction, InstructionInfo> const c_instructionInfo =
|
||||
{ Instruction::GASLIMIT, { "GASLIMIT", 0, 0, 1, false, Tier::Base } },
|
||||
{ Instruction::CHAINID, { "CHAINID", 0, 0, 1, false, Tier::Base } },
|
||||
{ Instruction::SELFBALANCE, { "SELFBALANCE", 0, 0, 1, false, Tier::Low } },
|
||||
{ Instruction::BASEFEE, { "BASEFEE", 0, 0, 1, false, Tier::Base } },
|
||||
{ Instruction::POP, { "POP", 0, 1, 0, false, Tier::Base } },
|
||||
{ Instruction::MLOAD, { "MLOAD", 0, 1, 1, true, Tier::VeryLow } },
|
||||
{ Instruction::MSTORE, { "MSTORE", 0, 2, 0, true, Tier::VeryLow } },
|
||||
|
@ -88,6 +88,7 @@ enum class Instruction: uint8_t
|
||||
GASLIMIT, ///< get the block's gas limit
|
||||
CHAINID, ///< get the config's chainid param
|
||||
SELFBALANCE, ///< get balance of the current account
|
||||
BASEFEE, ///< get the block's basefee
|
||||
|
||||
POP = 0x50, ///< remove item from stack
|
||||
MLOAD, ///< load word from memory
|
||||
|
@ -353,6 +353,7 @@ bool SemanticInformation::invalidInPureFunctions(Instruction _instruction)
|
||||
case Instruction::CALLER:
|
||||
case Instruction::CALLVALUE:
|
||||
case Instruction::CHAINID:
|
||||
case Instruction::BASEFEE:
|
||||
case Instruction::GAS:
|
||||
case Instruction::GASPRICE:
|
||||
case Instruction::EXTCODESIZE:
|
||||
|
Loading…
Reference in New Issue
Block a user