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:
@@ -188,6 +188,12 @@ GasMeter::GasConsumption GasMeter::estimateMax(AssemblyItem const& _item, bool _
|
||||
case Instruction::BALANCE:
|
||||
gas = GasCosts::balanceGas(m_evmVersion);
|
||||
break;
|
||||
case Instruction::CHAINID:
|
||||
gas = runGas(Instruction::CHAINID);
|
||||
break;
|
||||
case Instruction::SELFBALANCE:
|
||||
gas = runGas(Instruction::SELFBALANCE);
|
||||
break;
|
||||
default:
|
||||
gas = runGas(_item.instruction());
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user