-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
auto: fix chain module #14140
auto: fix chain module #14140
Changes from 4 commits
0545615
03ad8f6
1594fb6
d86b5a3
bf41b09
873887c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ interface IChainModule { | |
// retrieve the L1 data fee for a L2 transaction. it should return 0 for L1 chains and | ||
// L2 chains which don't have L1 fee component. it uses msg.data to estimate L1 data so | ||
// it must be used with a transaction. Return value in wei. | ||
function getCurrentL1Fee() external view returns (uint256); | ||
function getCurrentL1Fee(uint256 dataSize) external view returns (uint256); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. option 2 is use a |
||
|
||
// retrieve the L1 data fee for a L2 simulation. it should return 0 for L1 chains and | ||
// L2 chains which don't have L1 fee component. Return value in wei. | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
using
uint256
will make it not accurateusing
bytes
will make it waste lots of gasThere 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.
with chain module (uint256) and V2: nothing
with chain module (bytes) and V2: 1 (BASE, OP), 1/2/3 (Scroll)