bug: fees and gas limit for L2 execution
Closed this issue · 0 comments
ClementWalter commented
What
Currently, when Kakarot processes a message call from L1, there are 3 hard coded values:
- nonce = 0
- gas limit = 2_100_000_000
- gas price = 1
Nonce should be set to actual l2 sender.
Gas limit should remain "infinite" because messaging relies on Starknet to relay messages and there is no way to make sure that Starknet would not accept to relay a message that would trigger an OOG, consequently possibly loosing funds for users.
Gas price should be 0 because the fees are paid for on L1 and again, if Starknet decides to relay the message, must not fail.