11/**
22 * @prettier
33 */
4- import * as t from 'io-ts' ;
4+ import { TxSendBody } from '@bitgo/public-types' ;
5+ import { CoinFamily } from '@bitgo/statics' ;
56import assert from 'assert' ;
67import BigNumber from 'bignumber.js' ;
8+ import * as t from 'io-ts' ;
79import * as _ from 'lodash' ;
10+ import { IRequestTracer } from '../../api' ;
811import * as common from '../../common' ;
12+ import { AddressBook , IAddressBook } from '../address-book' ;
913import {
1014 IBaseCoin ,
1115 NFTTransferOptions ,
@@ -25,11 +29,15 @@ import {
2529 MissingEncryptedKeychainError ,
2630 NeedUserSignupError ,
2731} from '../errors' ;
28- import * as internal from '../internal/internal ' ;
32+ import { SubmitTransactionResponse } from '../inscriptionBuilder ' ;
2933import { drawKeycard } from '../internal' ;
34+ import * as internal from '../internal/internal' ;
3035import { decryptKeychainPrivateKey , Keychain , KeychainWithEncryptedPrv } from '../keychain' ;
36+ import { getLightningAuthKey } from '../lightning/lightningWalletUtil' ;
3137import { IPendingApproval , PendingApproval , PendingApprovals } from '../pendingApproval' ;
38+ import { GoStakingWallet , StakingWallet } from '../staking' ;
3239import { TradingAccount } from '../trading' ;
40+ import { getTxRequest } from '../tss' ;
3341import {
3442 EddsaUnsignedTransaction ,
3543 inferAddressType ,
@@ -41,6 +49,11 @@ import {
4149 TokenType ,
4250 TxRequest ,
4351} from '../utils' ;
52+ import { postWithCodec } from '../utils/postWithCodec' ;
53+ import { EcdsaMPCv2Utils , EcdsaUtils } from '../utils/tss/ecdsa' ;
54+ import EddsaUtils from '../utils/tss/eddsa' ;
55+ import { getTxRequestApiVersion , validateTxRequestApiVersion } from '../utils/txRequest' ;
56+ import { buildParamKeys , BuildParams } from './BuildParams' ;
4457import {
4558 AccelerateTransactionOptions ,
4659 AddressesByBalanceOptions ,
@@ -110,19 +123,6 @@ import {
110123 WalletSignTypedDataOptions ,
111124 WalletType ,
112125} from './iWallet' ;
113- import { GoStakingWallet , StakingWallet } from '../staking' ;
114- import EddsaUtils from '../utils/tss/eddsa' ;
115- import { EcdsaMPCv2Utils , EcdsaUtils } from '../utils/tss/ecdsa' ;
116- import { getTxRequest } from '../tss' ;
117- import { buildParamKeys , BuildParams } from './BuildParams' ;
118- import { postWithCodec } from '../utils/postWithCodec' ;
119- import { TxSendBody } from '@bitgo/public-types' ;
120- import { AddressBook , IAddressBook } from '../address-book' ;
121- import { IRequestTracer } from '../../api' ;
122- import { getTxRequestApiVersion , validateTxRequestApiVersion } from '../utils/txRequest' ;
123- import { getLightningAuthKey } from '../lightning/lightningWalletUtil' ;
124- import { SubmitTransactionResponse } from '../inscriptionBuilder' ;
125- import { CoinFamily } from '@bitgo/statics' ;
126126
127127const debug = require ( 'debug' ) ( 'bitgo:v2:wallet' ) ;
128128
@@ -3231,6 +3231,8 @@ export class Wallet implements IWallet {
32313231 */
32323232 public async sendTokenEnablement ( params : PrebuildAndSignTransactionOptions = { } ) : Promise < any > {
32333233 const teConfig = this . baseCoin . getTokenEnablementConfig ( ) ;
3234+ if ( params . verification && params . verification . verifyTokenEnablement === undefined )
3235+ params . verification . verifyTokenEnablement = true ;
32343236 if ( ! teConfig . requiresTokenEnablement ) {
32353237 throw new Error ( `${ this . baseCoin . getFullName ( ) } does not require token enablement transactions` ) ;
32363238 }
0 commit comments