File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
test/tools/yulInterpreter Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -220,6 +220,8 @@ u256 EVMInstructionInterpreter::eval(
220
220
return m_state.gasprice ;
221
221
case Instruction::CHAINID:
222
222
return m_state.chainid ;
223
+ case Instruction::BASEFEE:
224
+ return m_state.basefee ;
223
225
case Instruction::EXTCODESIZE:
224
226
return u256 (keccak256 (h256 (arg[0 ]))) & 0xffffff ;
225
227
case Instruction::EXTCODEHASH:
Original file line number Diff line number Diff line change @@ -90,6 +90,8 @@ struct InterpreterState
90
90
u256 difficulty = 0x9999999 ;
91
91
u256 gaslimit = 4000000 ;
92
92
u256 chainid = 0x01 ;
93
+ // / The minimum value of basefee: 7 wei.
94
+ u256 basefee = 0x07 ;
93
95
// / Log of changes / effects. Sholud be structured data in the future.
94
96
std::vector<std::string> trace;
95
97
// / This is actually an input parameter that more or less limits the runtime.
@@ -227,4 +229,3 @@ class ExpressionEvaluator: public ASTWalker
227
229
};
228
230
229
231
}
230
-
You can’t perform that action at this time.
0 commit comments