Skip to content

Calling in Solidity function getL1Fee(bytes memory _data) external view returns (uint256); #35

Discussion options

You must be logged in to vote

If a function changes the on-chain status, does the timing of calling the getL1Fee function affect its outcome?

Yes it does (across L2 blocks), the L1 base fee is part of the computation, and that changes frequently

Specifically, would the result be the same if it’s called at the beginning of the function versus just before the return statement?

Within the same L2 block it does not change

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@shaobaili3
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by shaobaili3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants