Convert this component to ts as prep for upgrading the behavior of wallet switching
Details
Details
- Reviewers
emack - Group Reviewers
Restricted Project - Commits
- rABCf424953ba614: [Cashtab] Convert WalletLabel to ts
npm test
Diff Detail
Diff Detail
- Repository
- rABC Bitcoin ABC
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
Build Bitcoin ABC Diffs / Diff Testing (cashtab-tests) failed.
Tail of the build log:
Run `npm audit` for details. > ecash-lib@1.3.0 build > tsc && tsc -p ./tsconfig.build.json && cp -r ./src/ffi ./dist /work/modules/ecash-agora /work/abc-ci-builds/cashtab-tests added 364 packages, and audited 367 packages in 2s 60 packages are looking for funding run `npm fund` for details 2 vulnerabilities (1 moderate, 1 high) To address all issues, run: npm audit fix Run `npm audit` for details. > ecash-agora@0.3.1 build > tsc && tsc -p ./tsconfig.build.json /work/cashtab /work/abc-ci-builds/cashtab-tests npm warn deprecated @humanwhocodes/config-array@0.11.14: Use @eslint/config-array instead npm warn deprecated @humanwhocodes/object-schema@2.0.3: Use @eslint/object-schema instead npm warn deprecated eslint@8.56.0: This version is no longer supported. Please see https://eslint.org/version-support for other options. added 1494 packages, and audited 3315 packages in 25s 320 packages are looking for funding run `npm fund` for details 8 vulnerabilities (6 moderate, 2 high) To address issues that do not require attention, run: npm audit fix To address all issues (including breaking changes), run: npm audit fix --force Run `npm audit` for details. > cashtab@3.12.2 build > node scripts/build.js Creating an optimized production build... Failed to compile. TS2339: Property 'setCashtabState' does not exist on type 'UseWalletReturnType'. [0m [90m 86 |[39m [36mconst[39m { [90m 87 |[39m cashtabState[33m,[39m [31m[1m>[22m[39m[90m 88 |[39m setCashtabState[33m,[39m [90m |[39m [31m[1m^[22m[39m[31m[1m^[22m[39m[31m[1m^[22m[39m[31m[1m^[22m[39m[31m[1m^[22m[39m[31m[1m^[22m[39m[31m[1m^[22m[39m[31m[1m^[22m[39m[31m[1m^[22m[39m[31m[1m^[22m[39m[31m[1m^[22m[39m[31m[1m^[22m[39m[31m[1m^[22m[39m[31m[1m^[22m[39m[31m[1m^[22m[39m [90m 89 |[39m updateCashtabState[33m,[39m [90m 90 |[39m fiatPrice[33m,[39m [90m 91 |[39m loading[33m,[39m[0m Build cashtab-tests failed with exit code 1
Comment Actions
Build Bitcoin ABC Diffs / Diff Testing (cashtab-tests) failed.
Tail of the build log:
60 packages are looking for funding run `npm fund` for details 2 vulnerabilities (1 moderate, 1 high) To address all issues, run: npm audit fix Run `npm audit` for details. > ecash-lib@1.3.0 build > tsc && tsc -p ./tsconfig.build.json && cp -r ./src/ffi ./dist /work/modules/ecash-agora /work/abc-ci-builds/cashtab-tests added 364 packages, and audited 367 packages in 2s 60 packages are looking for funding run `npm fund` for details 2 vulnerabilities (1 moderate, 1 high) To address all issues, run: npm audit fix Run `npm audit` for details. > ecash-agora@0.3.1 build > tsc && tsc -p ./tsconfig.build.json /work/cashtab /work/abc-ci-builds/cashtab-tests npm warn deprecated @humanwhocodes/config-array@0.11.14: Use @eslint/config-array instead npm warn deprecated @humanwhocodes/object-schema@2.0.3: Use @eslint/object-schema instead npm warn deprecated eslint@8.56.0: This version is no longer supported. Please see https://eslint.org/version-support for other options. added 1494 packages, and audited 3315 packages in 25s 320 packages are looking for funding run `npm fund` for details 8 vulnerabilities (6 moderate, 2 high) To address issues that do not require attention, run: npm audit fix To address all issues (including breaking changes), run: npm audit fix --force Run `npm audit` for details. > cashtab@3.12.2 build > node scripts/build.js Creating an optimized production build... Failed to compile. Module not found: Error: Can't resolve 'components/Common/WalletLabel.js' in '/work/cashtab/src/components/App' Build cashtab-tests failed with exit code 1
Comment Actions
Build Bitcoin ABC Diffs / Diff Testing (cashtab-tests) failed.
Tail of the build log:
Run `npm audit` for details. > ecash-lib@1.3.0 build > tsc && tsc -p ./tsconfig.build.json && cp -r ./src/ffi ./dist /work/modules/ecash-agora /work/abc-ci-builds/cashtab-tests added 364 packages, and audited 367 packages in 1s 60 packages are looking for funding run `npm fund` for details 2 vulnerabilities (1 moderate, 1 high) To address all issues, run: npm audit fix Run `npm audit` for details. > ecash-agora@0.3.1 build > tsc && tsc -p ./tsconfig.build.json /work/cashtab /work/abc-ci-builds/cashtab-tests npm warn deprecated @humanwhocodes/config-array@0.11.14: Use @eslint/config-array instead npm warn deprecated @humanwhocodes/object-schema@2.0.3: Use @eslint/object-schema instead npm warn deprecated eslint@8.56.0: This version is no longer supported. Please see https://eslint.org/version-support for other options. added 1494 packages, and audited 3315 packages in 24s 320 packages are looking for funding run `npm fund` for details 8 vulnerabilities (6 moderate, 2 high) To address issues that do not require attention, run: npm audit fix To address all issues (including breaking changes), run: npm audit fix --force Run `npm audit` for details. > cashtab@3.12.2 build > node scripts/build.js Creating an optimized production build... Failed to compile. TS7006: Parameter 'e' implicitly has an 'any' type. [0m [90m 80 |[39m [36mconst[39m address [33m=[39m wallets[[35m0[39m][33m.[39mpaths[33m.[39m[36mget[39m([35m1899[39m)[33m.[39maddress[33m;[39m [90m 81 |[39m [31m[1m>[22m[39m[90m 82 |[39m [36mconst[39m handleSelectWallet [33m=[39m e [33m=>[39m { [90m |[39m [31m[1m^[22m[39m [90m 83 |[39m [36mconst[39m walletName [33m=[39m e[33m.[39mtarget[33m.[39mvalue[33m;[39m [90m 84 |[39m [90m 85 |[39m [90m// Get the active wallet by name[39m[0m Build cashtab-tests failed with exit code 1
cashtab/src/components/App/App.tsx | ||
---|---|---|
183 ↗ | (On Diff #52259) | this component stopped using this prop a long time ago, but without typescript nothing complained |