Skip to content

feat: unit tests for transaction hash decoder and i18n translation keys for staking rewards calculator - #1531

Merged
nanaf6203-bit merged 1 commit into
MettaChain:mainfrom
Taylor-Kay:feat/taylor-transaction-decoder-tests-and-translations
Nov 24, 2026
Merged

nanaf6203-bit merged 1 commit into
MettaChain:mainfrom
Taylor-Kay:feat/taylor-transaction-decoder-tests-and-translations

Conversation

@Taylor-Kay

Copy link
Copy Markdown
Contributor

Summary

Resolves all issues assigned to @Taylor-Kay.

Changes

  • ui-extensions/tests/transactionHashDecoder.test.ts — Full unit-test suite for the transaction revert-reason decoder utility (decodeRevert in formatters.ts). Covers: successful decoding of single-arg and no-arg errors, unknown 4-byte selectors, missing ABI, null data, network rejections (Error and non-Error), and caching (single-call guarantee, stale cache on error, per-hash isolation). Achieves 100% branch coverage of decodeRevert.

  • ui-extensions/docs/i18n-staking-rewards.md — Translation keys for the staking rewards calculator interface (input labels, result summaries, chart axis labels, time period selectors, error messages) in all 7 languages: en, es, fr, de, zh, ar, he.

All changes are confined to ui-extensions/ as required by the isolation statement in each issue.

Closes

Closes #1451
Closes #1448
Closes #1449
Closes #1384

@drips-wave

drips-wave Bot commented Nov 23, 2026

Copy link
Copy Markdown

@Taylor-Kay Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@nanaf6203-bit nanaf6203-bit left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me — thanks for putting this together!

@nanaf6203-bit
nanaf6203-bit merged commit 7c1fd0d into MettaChain:main Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants