File tree 2 files changed +4
-1
lines changed
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 {
196
196
197
197
table[EVMC_EXPERIMENTAL] = table[EVMC_OSAKA];
198
198
199
+ for (auto op = size_t {OP_PUSH1}; op <= OP_PUSH32; ++op)
200
+ table[EVMC_EXPERIMENTAL][op] = 1 ;
201
+
199
202
table[EVMC_EVMMAX][OP_SETUPX] = 1 ;
200
203
table[EVMC_EVMMAX][OP_ADDMODX] = 0 ;
201
204
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>{}));
99
99
// Check some cases for has_const_gas_cost().
100
100
static_assert (instr::has_const_gas_cost(OP_STOP));
101
101
static_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));
103
103
static_assert (!instr::has_const_gas_cost(OP_SHL));
104
104
static_assert (!instr::has_const_gas_cost(OP_BALANCE));
105
105
static_assert (!instr::has_const_gas_cost(OP_SLOAD));
You can’t perform that action at this time.
0 commit comments