Skip to content

Commit 90cedea

Browse files
Merge pull request #6553 from BitGo/CE-6443-token-enablement-opt-out-dialog
fix: build token enable hard code error
2 parents 92dab4a + b31452b commit 90cedea

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

modules/sdk-core/src/bitgo/wallet/wallet.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3141,7 +3141,9 @@ export class Wallet implements IWallet {
31413141
}
31423142

31433143
const buildParams: PrebuildTransactionOptions = _.pick(params, this.prebuildWhitelistedParams());
3144-
buildParams.type = 'enabletoken';
3144+
if (!buildParams.type) {
3145+
buildParams.type = 'enabletoken';
3146+
}
31453147
// Check if we build with intent
31463148
if (this._wallet.multisigType === 'tss') {
31473149
return [await this.prebuildTransaction(buildParams)];

0 commit comments

Comments
 (0)