Skip to content

fix: validate linked wallet addresses#129

Open
Genmin wants to merge 1 commit intoDigiNodes:mainfrom
Genmin:fix/link-wallet-address-validation
Open

fix: validate linked wallet addresses#129
Genmin wants to merge 1 commit intoDigiNodes:mainfrom
Genmin:fix/link-wallet-address-validation

Conversation

@Genmin
Copy link
Copy Markdown

@Genmin Genmin commented Apr 28, 2026

Summary

  • Adds @IsEthereumAddress() validation to LinkWalletDto.address with a clear validation message.
  • Adds focused DTO tests for valid and invalid Ethereum address formats.

Validation

  • npm test -- link-wallet.dto.spec.ts --runInBand
  • npx prettier --check src/identity/dto/link-wallet.dto.ts src/identity/dto/link-wallet.dto.spec.ts

Existing local build blockers observed

  • npm ci currently fails because package.json and package-lock.json are out of sync (prom-client@15.1.3 is missing from the lockfile).
  • After installing without modifying the lockfile, npm run build fails on existing unrelated TypeScript errors in src/blockchain/reorg-detector.service.ts, src/main.ts, src/modules/sybil/*, and src/storage/cid-verifier.ts.

Closes #110

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Validate LinkWalletDto address format with an Ethereum address validator

1 participant