Commit 7762469
authored
Add Etherlink authorization gas overhead (#102)
Etherlink (chain ID 42793) nodes don't account for gas consumed by authorization list items when estimating gas. Add ETHERLINK_CHAIN_ID and ETHERLINK_GAS_PER_AUTHORIZATION constants and, for requests targeting that chain, increase the tx_request gas limit by (authorization_count * ETHERLINK_GAS_PER_AUTHORIZATION) before building the typed transaction. A debug log records the chain_id, authorization_count, and extra_gas applied.1 parent 3011976 commit 7762469
1 file changed
+21
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
6 | 11 | | |
7 | 12 | | |
8 | 13 | | |
| |||
364 | 369 | | |
365 | 370 | | |
366 | 371 | | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
367 | 388 | | |
368 | 389 | | |
369 | 390 | | |
| |||
0 commit comments