Fix `cargo fmt --check` failure that turns Contract CI red on main
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 1/5
- Tiempo estimado
- Menos de una hora
- Aptitud para principiantes
- 90/100
Línea de trabajo
El único archivo que necesita cambios es contracts/invoice/src/lib.rs. Ejecuta cargo fmt --all desde contracts/ y revisa el diff, que debería cubrir solo la firma de get_invoice_range, las líneas en blanco y la expresión if let Some(inv) con saltos de línea. Está terminado cuando cargo fmt --all --check pasa, cargo clippy --all-targets y cargo test siguen pasando con las 23 pruebas, y el diff no tiene cambios de lógica.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Difficulty: Beginner
Problem
After PR #42 was merged, cargo fmt --all --check fails on main. rustfmt wants the get_invoice_range signature on one line, wants two whitespace-only lines inside it emptied, and wants the long if let Some(inv) = env.storage()... expression wrapped. Contract CI fails at its first step (format check), so clippy, tests and the wasm build never run.
Why it matters
A red Contract CI hides real regressions and blocks every future contract PR from showing a meaningful status.
Scope of work
Run cargo fmt --all in contracts/ and commit the result. No behaviour change. Only contracts/invoice/src/lib.rs should change (about 15 lines).
Acceptance criteria
-
cargo fmt --all --checkpasses. -
cargo clippy --all-targetsandcargo teststill pass (23 tests). - Contract CI is green on the PR.
- The diff contains formatting changes only.
Relevant files
contracts/invoice/src/lib.rs
Dependencies
None.
Maintainer discussion needed?
No. Urgent, because CI is currently red.
- Lenguaje dominante
- TypeScript
- Estrellas
- 0
- Forks
- 4
- Merge medio
- 54 min
- PR fusionados (30 d)
- 6
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de Yormee-103/PayLoop
-
Add a CHANGELOG and release-notes conventionPosiblemente ocupada @Sharon-dev-create la tomó hoy. Abiertodifficulty: beginner documentation dx help wanted Stellar Wave
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Yormee-103/PayLoop#169 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Glossary of Stellar and PayLoop terms, linked from the Help pagePosiblemente ocupada @Yemmy88 la tomó hoy. Abiertodifficulty: beginner documentation good first issue help wanted Stellar Wave
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Yormee-103/PayLoop#168 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
difficulty: beginner dx good first issue help wanted web
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Yormee-103/PayLoop#158 ·
Los mantenedores suelen responder en 1 día
-
difficulty: beginner documentation good first issue help wanted security
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Yormee-103/PayLoop#145 ·
Los mantenedores suelen responder en 1 día
-
a11y difficulty: beginner good first issue help wanted web
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Yormee-103/PayLoop#144 ·
Los mantenedores suelen responder en 1 día
Todos los issues de Yormee-103/PayLoop
Issues similares
-
[UI] Guard webApis against undefined window in SSR environmentsPosiblemente ocupada @madhavzanwar la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
headroomlabs-ai/headroom#4992 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
paperclipai/paperclip#22575 ·
Los mantenedores suelen responder en 1 día
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
lingdojo/kana-dojo#34502 · 1 comentario · 5 reacciones ·
Los mantenedores suelen responder en 1 día
-
bug frontend good first issue help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
nikhilb2/simple_invoicing#935 ·