-
Notifications
You must be signed in to change notification settings - Fork 324
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
[evm] support opBasefee #3643
[evm] support opBasefee #3643
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3643 +/- ##
==========================================
- Coverage 74.95% 74.78% -0.17%
==========================================
Files 269 269
Lines 23819 23881 +62
==========================================
+ Hits 17854 17860 +6
- Misses 5039 5093 +54
- Partials 926 928 +2
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
action/protocol/execution/evm/evm.go
Outdated
BlockNumber: new(big.Int).SetUint64(blkCtx.BlockHeight), | ||
Time: new(big.Int).SetInt64(blkCtx.BlockTimeStamp.Unix()), | ||
Difficulty: new(big.Int).SetUint64(uint64(50)), | ||
GasLimit: gasLimit, | ||
BaseFee: new(big.Int).SetUint64(1), // in units of 10^-6 IOTX, current basefee is 1 |
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.
how is BaseFee
used?
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.
see https://eips.ethereum.org/EIPS/eip-3198
it is for contract to access the basefee
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.
ok. Why is it hardcoded to 1
?
Kudos, SonarCloud Quality Gate passed! |
Description
EIP3198 is enabled in London EVM, which accesses
evm.Context.BaseFee
. See ethereum/go-ethereum@94451c2#diff-c21870801ba3133fda5991da046fbfd0f83999bda1008a4af84affca83ec5eb9R171Fixes #(issue)
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Checklist: