Skip to content

Commit 24ab2e9

Browse files
sirdeggenclaude
andcommitted
fix(wallet-toolbox): explicit txid null/empty check; drop lint from prepublish
Satisfies @typescript-eslint/strict-boolean-expressions on nullable string in abortAction guard. Lint removed from prepublish in wallet-toolbox and wallet-toolbox-examples — release workflow should not fix lint after merge to main. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 927a333 commit 24ab2e9

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

packages/wallet/wallet-toolbox-examples/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"test:coverage": "npm run build && jest --coverage",
2525
"lint": "prettier --write 'src/**/*.ts' --log-level silent",
2626
"build": "tsc --build",
27-
"prepublish": "npm run lint && npm run build && npm run doc",
27+
"prepublish": "npm run build && npm run doc",
2828
"doc": "ts2md"
2929
},
3030
"bugs": {

packages/wallet/wallet-toolbox/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"lint": "ts-standard --fix src/**/*.ts",
3232
"lint:ci": "ts-standard src/**/*.ts",
3333
"build": "tsc --build",
34-
"prepublish": "npm run lint && npm run build && npm run doc && npm run sync-versions",
34+
"prepublish": "npm run build && npm run doc && npm run sync-versions",
3535
"doc": "ts2md",
3636
"sync-versions": "node syncVersions.js"
3737
},

packages/wallet/wallet-toolbox/src/storage/StorageProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ export abstract class StorageProvider extends StorageReaderWriter implements Wal
310310
// chain-confirmed txs while offline; the audit trail makes it
311311
// recoverable.
312312
let serviceUnreachable = false
313-
if (tx.txid && tx.status === 'nosend') {
313+
if (tx.txid != null && tx.txid !== '' && tx.status === 'nosend') {
314314
const services = this.getServices()
315315
let chainStatus: 'mined' | 'known' | 'unknown' | undefined
316316
try {

0 commit comments

Comments
 (0)