-
Notifications
You must be signed in to change notification settings - Fork 20.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
core/vm: evm fix panic #23047
core/vm: evm fix panic #23047
Conversation
This was part of #22901 |
core/vm/runtime/runtime.go
Outdated
@@ -93,6 +94,9 @@ func setDefaults(cfg *Config) { | |||
return common.BytesToHash(crypto.Keccak256([]byte(new(big.Int).SetUint64(n).String()))) | |||
} | |||
} | |||
if cfg.BaseFee == nil { | |||
cfg.BaseFee = new(big.Int) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be params.InitialBaseFee
? Also, shouldn't we aso set LondonBlock
in the chain confg above?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
edit, sorry was a bit too quick with that, will be more thorough in the future
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SGTM
* core/vm: evm fix panic * core/vm/runtime: default to params.initialbasefee
Without this PR:
With this PR: