Map contract and transaction errors to plain language
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 55/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- typescript
- Ambito
- blockchain
Direzione di ricerca
Start in web/lib/contract.ts at invokeSigned, where the 30-second poll timeout (NOT_FOUND) and the on-chain FAILED both produce the same "did not succeed" message, and at the trustline translation in /pay to see the existing pattern. Error codes 1-8 are defined in contracts/invoice/README.md. Add a mapper in a new lib/errors.ts that throws a typed PayLoopError. Done when Create and Pay show distinct messages for each code and for user-rejected signing and low XLM fees, a timeout shows the tx hash with "check the explorer" and never says "failed", and the mapper has unit tests.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Difficulty: Intermediate
Description
Only the trustline error is translated (in /pay). Everything else reaches users as raw SDK text such as Error(Contract, #4). invokeSigned in web/lib/contract.ts also reports a 30-second poll timeout (NOT_FOUND) and an on-chain FAILED with the same "did not succeed" message.
Implementation suggestions
Create lib/errors.ts with a code-to-message map (codes 1-8 from contracts/invoice/README.md). Add handling for user-rejected signing, insufficient XLM for fees, and timeout. Throw a typed PayLoopError. On timeout, show the tx hash with "check the explorer" instead of "failed".
Acceptance criteria
- Each of codes 1-8 and the other cases above shows a distinct, human-readable message on Create and Pay.
- A timeout never claims the transaction failed.
- Unit tests cover the mapper.
Dependencies / related
Tests use #13. Error paths are exercised by the E2E suite in #37. If #27 or #29 add new error codes, extend the map.
- Lingua principale
- TypeScript
- Stelle
- 0
- Fork
- 4
- Merge medio
- 54m
- PR unite (30g)
- 6
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Yormee-103/PayLoop
-
Add a CHANGELOG and release-notes conventionForse già presa @Sharon-dev-create l’ha presa oggi. Apertadifficulty: beginner documentation dx help wanted Stellar Wave
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
Yormee-103/PayLoop#169 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Glossary of Stellar and PayLoop terms, linked from the Help pageForse già presa @Yemmy88 l’ha presa oggi. Apertadifficulty: beginner documentation good first issue help wanted Stellar Wave
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
Yormee-103/PayLoop#168 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
difficulty: beginner dx good first issue help wanted web
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
Yormee-103/PayLoop#158 ·
I maintainer di solito rispondono entro 1 giorno
-
difficulty: beginner documentation good first issue help wanted security
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
Yormee-103/PayLoop#145 ·
I maintainer di solito rispondono entro 1 giorno
-
a11y difficulty: beginner good first issue help wanted web
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
Yormee-103/PayLoop#144 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di Yormee-103/PayLoop
Issue simili
-
[UI] Guard webApis against undefined window in SSR environmentsForse già presa @madhavzanwar l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
headroomlabs-ai/headroom#4992 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
paperclipai/paperclip#22575 ·
I maintainer di solito rispondono entro 1 giorno
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
lingdojo/kana-dojo#34502 · 1 commento · 5 reazioni ·
I maintainer di solito rispondono entro 1 giorno
-
bug frontend good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
nikhilb2/simple_invoicing#935 ·