Skip to content

Commit

Permalink
Merge pull request #4907 from BitGo/WP-2664-e-toro-issue-with-the-new…
Browse files Browse the repository at this point in the history
…-bitgo-express

fix: add wallet type check for sign transaction
  • Loading branch information
margueriteblair committed Sep 16, 2024
2 parents a10dac8 + ddc04f5 commit 65b0db0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion modules/sdk-core/src/bitgo/wallet/wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1831,7 +1831,12 @@ export class Wallet implements IWallet {
params.txPrebuild = { txRequestId };
}

if (params.walletPassphrase && !(params.keychain || params.key)) {
if (
params.walletPassphrase &&
!(params.keychain || params.key) &&
(this.type() === 'hot' || this.type() === undefined)
) {
// this logic should only apply to hot wallets
if (!_.isString(params.walletPassphrase)) {
throw new Error('walletPassphrase must be a string');
}
Expand Down

0 comments on commit 65b0db0

Please sign in to comment.