Skip to content

Commit

Permalink
fix(abstract-utxo): remove unused coinSpecific in isWalletAddress
Browse files Browse the repository at this point in the history
TICKET: BTC-1268
  • Loading branch information
davidkaplanbitgo committed Jun 21, 2024
1 parent 500baf6 commit b3e7e38
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions modules/abstract-utxo/src/abstractUtxoCoin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ import {
IBaseCoin,
InvalidAddressDerivationPropertyError,
InvalidAddressError,
InvalidAddressVerificationObjectPropertyError,
IRequestTracer,
isTriple,
ITransactionExplanation as BaseTransactionExplanation,
Expand Down Expand Up @@ -967,7 +966,7 @@ export abstract class AbstractUtxoCoin extends BaseCoin {
* @throws {UnexpectedAddressError}
*/
async isWalletAddress(params: VerifyAddressOptions): Promise<boolean> {
const { address, addressType, keychains, coinSpecific, chain, index } = params;
const { address, addressType, keychains, chain, index } = params;

if (!this.isValidAddress(address)) {
throw new InvalidAddressError(`invalid address: ${address}`);
Expand All @@ -979,12 +978,6 @@ export abstract class AbstractUtxoCoin extends BaseCoin {
);
}

if (!_.isObject(coinSpecific)) {
throw new InvalidAddressVerificationObjectPropertyError(
'address validation failure: coinSpecific field must be an object'
);
}

if (!keychains) {
throw new Error('missing required param keychains');
}
Expand Down

0 comments on commit b3e7e38

Please sign in to comment.