You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
No test keeps scripts/error-codes.mjs in sync with the contracts' error.rs enums #499
The mapping is maintained by hand, and it has already drifted (missing ArithmeticOverflow and TooManyDeposits). Nothing in scripts/*.test.mjs or CI compares it with contracts/*/src/error.rs.
Suggested fix
Add a small test that parses each error.rs (Name = N, lines) and asserts the JS mapping matches exactly, or generate the JS file in make build.
Created scripts/error-codes.test.mjs using node:test and node:assert/strict which parses all three contracts/*/src/error.rs files directly and asserts complete bidirectional parity with errorMappings.
Synchronized scripts/error-codes.mjs mappings to include missing codes (ArithmeticOverflow and TooManyDeposits).
All 3 synchronization tests passing (node --test scripts/error-codes.test.mjs).
@oluwagbemigaphilip has applied to work on this issue as part of the Stellar Wave Program's 10th wave.
Hi, I’ve carefully reviewed the issue and understand the expected outcome. I have the relevant experience to implement the solution and would be glad to take it on. Please assign it to me.
Congratulations, @oluwagbemigaphilip! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on October 22, 2026.
🧑💻 @oluwagbemigaphilip: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.
Warning
When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.
🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.
😎 @oluwagbemigaphilip: You earned 200 Points for completing this issue! Once the Wave's rewards are finalized, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here. You can also Leave a review to share your experience working on this issue.
🧑💻 Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.
Activity
urielit1313-creator commentedon Oct 14, 2026
Addressed in PR #630.
Summary
scripts/error-codes.test.mjsusingnode:testandnode:assert/strictwhich parses all threecontracts/*/src/error.rsfiles directly and asserts complete bidirectional parity witherrorMappings.scripts/error-codes.mjsmappings to include missing codes (ArithmeticOverflowandTooManyDeposits).node --test scripts/error-codes.test.mjs).Bounty Payout Address (Base USDC):
0xfE777c43e4B0A24fFA1527eD520d1E7f9ECED483Mhidesav commentedon Oct 18, 2026
@Mhidesav has applied to work on this issue as part of the Stellar Wave Program's 10th wave.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @Mhidesav to this issue.
oluwagbemigaphilip commentedon Oct 18, 2026
@oluwagbemigaphilip has applied to work on this issue as part of the Stellar Wave Program's 10th wave.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @oluwagbemigaphilip to this issue.
drips-wave commentedon Oct 18, 2026
Congratulations, @oluwagbemigaphilip! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on October 22, 2026.
🧑💻 @oluwagbemigaphilip: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.
Warning
When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.
🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.
🌊 Happy Wave 🌊
drips-wave commentedon Oct 18, 2026
This issue has been completed by @oluwagbemigaphilip as part of the Stellar Wave Program's 10th Wave 🥳
😎 @oluwagbemigaphilip: You earned 200 Points for completing this issue! Once the Wave's rewards are finalized, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here. You can also Leave a review to share your experience working on this issue.
🧑💻 Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.