Calling in Solidity function getL1Fee(bytes memory _data) external view returns (uint256); #35
-
In Solidity, if a function changes the on-chain status, does the timing of calling the getL1Fee function affect its outcome? Specifically, would the result be the same if it’s called at the beginning of the function versus just before the return statement? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
I don't have a clear understanding of this @sbvegan |
Beta Was this translation helpful? Give feedback.
-
Firstly, I personally believe that when using RPC methods like |
Beta Was this translation helpful? Give feedback.
-
Yes it does (across L2 blocks), the L1 base fee is part of the computation, and that changes frequently
Within the same L2 block it does not change |
Beta Was this translation helpful? Give feedback.
Yes it does (across L2 blocks), the L1 base fee is part of the computation, and that changes frequently
Within the same L2 block it does not change