Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

😶‍🌫️ Mystery Factor in Gas Estimation Script

Aperta
#123 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
45/100
Tipo di issue
Documentazione
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
typescript

Direzione di ricerca

Start with packages/gas-estimation/scripts/exec.ts, especially the gas formula documentation around lines 29–40 and the l1EstimatedPrice calculation near line 92. Trace the source and units of the factor of 16 before choosing a descriptive constant. Done means the constant and its purpose are documented in gasEstimator() and the tutorial remains understandable.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

📄 Summary

following refers to arbitrum-tutorials/packages/gas-estimation/scripts/exec.ts

After a thorough review of the gas-estimation script tutorial, including an analysis of the commit history and an organization-wide search, I have been unable to locate a clear explanation for why the following variable is multiplied by a factor of 16:

const l1EstimatedPrice = gasEstimateComponents.l1BaseFeeEstimate.mul(16);

I have examined the detailed documentation (👏) related to the gas formula and the section titled How do we get all parts of that equation. However, the documentation repeatedly states, "and multiply by 16" without providing a precise explanation for this multiplication.

🔎 Interpretation

This factor likely pertains to unit conversion, such as converting from units of size to units of gas. However, neither the tutorial nor the repository offers a clear and specific explanation for this multiplication.

💊 Remedy

To improve clarity, I suggest the following steps:

  1. Define a constant with a descriptive name for this factor.
  2. Provide sufficient documentation explaining the purpose and usage of the new constant.
  3. Update the detailed documentation within gasEstimator() to reference the factor of 16 and clearly explain its purpose.
Lingua principale
JavaScript
Stelle
508
Fork
314
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di OffchainLabs/arbitrum-tutorials

Tutte le issue di OffchainLabs/arbitrum-tutorials

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.