Skip to content

Commit a00674b

Browse files
committed
chore: remote p2tr check
Signed-off-by: Gregory Hill <gregorydhill@outlook.com>
1 parent 15d27b2 commit a00674b

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

sdk/src/gateway/client.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -422,9 +422,6 @@ export class GatewayApiClient {
422422
bitcoinNetwork = bitcoin.networks.testnet;
423423
}
424424

425-
if (!params.toUserAddress || getAddressInfo(params.toUserAddress, this.isSignet).type === AddressType.p2tr) {
426-
throw new Error('Only following bitcoin address types are supported P2PKH, P2WPKH, P2SH or P2WSH.');
427-
}
428425
const receiverAddress = toHexScriptPubKey(params.toUserAddress, bitcoinNetwork);
429426

430427
return {

0 commit comments

Comments
 (0)