Repository navigation
feat: unit tests for transaction hash decoder and i18n translation keys for staking rewards calculator - #1531
Merged
nanaf6203-bit merged 1 commit intoNov 24, 2026
Conversation
…ys for staking rewards calculator Closes MettaChain#1451 Closes MettaChain#1448 Closes MettaChain#1449 Closes MettaChain#1384
|
@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! 🚀 |
nanaf6203-bit
approved these changes
Nov 24, 2026
nanaf6203-bit
left a comment
Contributor
There was a problem hiding this comment.
Looks good to me — thanks for putting this together!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 (decodeRevertinformatters.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 ofdecodeRevert.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