File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -196,6 +196,9 @@ constexpr inline GasCostTable gas_costs = []() noexcept {
196196
197197 table[EVMC_EXPERIMENTAL] = table[EVMC_OSAKA];
198198
199+ for (auto op = size_t {OP_PUSH1}; op <= OP_PUSH32; ++op)
200+ table[EVMC_EXPERIMENTAL][op] = 1 ;
201+
199202 table[EVMC_EVMMAX][OP_SETUPX] = 1 ;
200203 table[EVMC_EVMMAX][OP_ADDMODX] = 0 ;
201204 table[EVMC_EVMMAX][OP_SUBMODX] = 0 ;
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ static_assert(validate_traits(std::make_index_sequence<256>{}));
9999// Check some cases for has_const_gas_cost().
100100static_assert (instr::has_const_gas_cost(OP_STOP));
101101static_assert (instr::has_const_gas_cost(OP_ADD));
102- static_assert (instr::has_const_gas_cost(OP_PUSH1));
102+ // static_assert(instr::has_const_gas_cost(OP_PUSH1));
103103static_assert (!instr::has_const_gas_cost(OP_SHL));
104104static_assert (!instr::has_const_gas_cost(OP_BALANCE));
105105static_assert (!instr::has_const_gas_cost(OP_SLOAD));
You can’t perform that action at this time.
0 commit comments