Page MenuHomePhabricator

[Cashtab] Remove unused validation function
ClosedPublic

Authored by bytesofman on Apr 6 2024, 23:14.

Details

Reviewers
emack
Group Reviewers
Restricted Project
Commits
rABC32dcb6f76960: [Cashtab] Remove unused validation function
Summary

In D15884, we tightened validation for contact list (only accept ecash: prefixed addresses). So, we stopped using this function. If we start accepting aliases, we need to convert them to addresses before storing them to keep app functionality straightforward.

For now, this is not used anywhere, so get rid of it.

Test Plan

npm test

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Tail of the build log:

Installing mock-chronik-client dependencies...
/work/modules/mock-chronik-client /work/abc-ci-builds/cashtab-tests

added 236 packages, and audited 237 packages in 2s

35 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
/work/cashtab /work/modules/mock-chronik-client /work/abc-ci-builds/cashtab-tests

added 1718 packages, and audited 1719 packages in 29s

262 packages are looking for funding
  run `npm fund` for details

1 moderate severity vulnerability

To address all issues, run:
  npm audit fix

Run `npm audit` for details.

> cashtab@2.23.0 build
> node scripts/build.js

Creating an optimized production build...
Failed to compile.

[eslint] 
src/validation/index.js
  Line 14:10:  'queryAliasServer' is defined but never used  no-unused-vars

Search for the keywords to learn more about each error.


Build cashtab-tests failed with exit code 1
bytesofman published this revision for review.Apr 6 2024, 23:19

Tail of the build log:

Installing mock-chronik-client dependencies...
/work/modules/mock-chronik-client /work/abc-ci-builds/cashtab-tests

added 236 packages, and audited 237 packages in 1s

35 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
/work/cashtab /work/modules/mock-chronik-client /work/abc-ci-builds/cashtab-tests

added 1718 packages, and audited 1719 packages in 30s

262 packages are looking for funding
  run `npm fund` for details

1 moderate severity vulnerability

To address all issues, run:
  npm audit fix

Run `npm audit` for details.

> cashtab@2.23.0 build
> node scripts/build.js

Creating an optimized production build...
Failed to compile.

[eslint] 
src/validation/index.js
  Line 14:10:  'queryAliasServer' is defined but never used  no-unused-vars

Search for the keywords to learn more about each error.


Build cashtab-tests failed with exit code 1

note the CI failures are related to previous revs pushed before linting, current state is passing CI

This revision is now accepted and ready to land.Apr 7 2024, 10:22