Content
@
0 reply
0 recast
2 reactions
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
@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
@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
Paul Berg
@prberg
It looks like Arbitrum no longer charges ~400k gas. I've just done a simple ETH transfer now, and it cost ~37k gas. In July 2023, it cost 411k gas to do this. Is this due to EIP-4844?
1 reply
0 recast
2 reactions
Matt Solomon
@msolomon.eth
Ah interesting, yea that must be the reason—everything above the standard 21k is the L1 cost, and L1 costs went down a lot with 4844
0 reply
0 recast
2 reactions