mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
add chainid and selfbalance to lllc
This commit is contained in:
@@ -40,6 +40,10 @@ bool EVMVersion::hasOpcode(Instruction _opcode) const
|
||||
return hasCreate2();
|
||||
case Instruction::EXTCODEHASH:
|
||||
return hasExtCodeHash();
|
||||
case Instruction::CHAINID:
|
||||
return hasChainID();
|
||||
case Instruction::SELFBALANCE:
|
||||
return hasSelfBalance();
|
||||
default:
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -84,6 +84,8 @@ public:
|
||||
bool hasBitwiseShifting() const { return *this >= constantinople(); }
|
||||
bool hasCreate2() const { return *this >= constantinople(); }
|
||||
bool hasExtCodeHash() const { return *this >= constantinople(); }
|
||||
bool hasChainID() const { return *this >= istanbul(); }
|
||||
bool hasSelfBalance() const { return *this >= istanbul(); }
|
||||
|
||||
bool hasOpcode(dev::eth::Instruction _opcode) const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user