-
Notifications
You must be signed in to change notification settings - Fork 848
Closed
Labels
status: invalid / expiredIssues with no action to take.Issues with no action to take.type: fixIssues describing a broken feature.Issues describing a broken feature.
Description
Description
IsBtcAddress decorator not working with bitcoin testnet addresses.
As described in this link
Testnet address are different from the mainet ones.
- eg testnet address:
mipcBbFg9gMiCh81Kj8tqqdgoZub1ZJRfn - eg mainet address:
17VZNX1SN5NtKa8UQFxwQbFeFc3iqRYhem
Reproduction
validation this example address mipcBbFg9gMiCh81Kj8tqqdgoZub1ZJRfn returns :
"isBtcAddress": "receiver must be a BTC address"
import { IsBtcAddress } from 'class-validator';
export class SendBtcTransactionDto {
@IsBtcAddress()
receiver: string;
}
Environment
- node v12.16.1
- nestjs
- class-validator: ^0.12.2
Metadata
Metadata
Assignees
Labels
status: invalid / expiredIssues with no action to take.Issues with no action to take.type: fixIssues describing a broken feature.Issues describing a broken feature.