As per feedback from D14212, the wrapper for the alias-server endpoints should be returning the JSON responses directly rather than leaving it to frontend components to parse.
Details
Details
- Reviewers
bytesofman - Group Reviewers
Restricted Project - Commits
- rABC5695d76dcf90: [Cashtab][Alias] Update alias-server wrappers to return JSON
npm test
Diff Detail
Diff Detail
- Repository
- rABC Bitcoin ABC
- Branch
- aliasUtilResponseUpdate
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 24402 Build 48404: Build Diff cashtab-tests Build 48403: arc lint + arc unit
Event Timeline
Comment Actions
improved error handling for when alias-server is non-responsive, improved code efficient per feedback
cashtab/src/utils/aliasUtils.js | ||
---|---|---|
80 ↗ | (On Diff #41291) | Interesting how this method looks similar to the above one, right ? It's like only the endpoint differs. |
Comment Actions
Consolidated getAliasDetails and getAliasesForAddress into a single alias-server wrapper, passing in the endpoint and query param as inputs. Unit tests updated accordingly.
Comment Actions
One nit, otherwise looks good to me.
cashtab/src/utils/aliasUtils.js | ||
---|---|---|
45 ↗ | (On Diff #41308) | Nit: the function name needs to be updated. |