Content pfp
Content
@
0 reply
0 recast
2 reactions

Paul Berg pfp
Paul Berg
@prberg
Is there any comprehensive documentation on how gas metering works across EVM chains? this is something I would love to see explained in rollup.codes There are application-level features dependent upon opcode prices and overall gas logic.
1 reply
2 recasts
47 reactions

shazow pfp
shazow
@shazow.eth
Isn't equivalent gas metering required to be EVM-equivalent? Are there EVM rollups that changed their gas metering?
1 reply
0 recast
0 reaction

Matt Solomon pfp
Matt Solomon
@msolomon.eth
Rollups have the L1 data fee that mainnet doesn’t. So you either: - Bake that into the gas limit (arbitrum), so you still only have gas price and gas limit, but an ETH send uses ~400k gas and fluctuates based on L1 gas price - Add L1 gas limit and price fields (Optimism), so L2 gas and cost matches the EVM
3 replies
0 recast
2 reactions

Matt Solomon pfp
Matt Solomon
@msolomon.eth
During execution on arbitrum L2 gas consumption still matches, so logic based off that can still work, but gas limit based logic doesn’t translate
1 reply
0 recast
2 reactions

shazow pfp
shazow
@shazow.eth
Ah so gas metering stays the same, but the gas limit logic can change as if there are additional phantom instructions outside of the scope of the contract. Makes sense.
0 reply
0 recast
0 reaction