Skip to content

Commit 958eb5a

Browse files
committed
refactor(sdk-coin-btc): move require to top
move require getDefaultWalletKeys, toKeychainObjects to top TICKET: WP-5955
1 parent a1726a6 commit 958eb5a

File tree

1 file changed

+2
-8
lines changed
  • modules/sdk-coin-btc/test/unit

1 file changed

+2
-8
lines changed

modules/sdk-coin-btc/test/unit/btc.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import { Tbtc } from '../../src';
88
import { BitGoAPI } from '@bitgo/sdk-api';
99
import * as utxolib from '@bitgo/utxo-lib';
1010

11+
const { getDefaultWalletKeys, toKeychainObjects } = require('../../../bitgo/test/v2/unit/coins/utxo/util/keychains');
12+
1113
describe('BTC:', () => {
1214
let bitgo: TestBitGoAPI;
1315

@@ -118,10 +120,6 @@ describe('BTC:', () => {
118120
});
119121

120122
it('should detect hex spoofing in BUILD_SIGN_SEND', async (): Promise<void> => {
121-
const {
122-
getDefaultWalletKeys,
123-
toKeychainObjects,
124-
} = require('../../../bitgo/test/v2/unit/coins/utxo/util/keychains');
125123
const rootWalletKey = getDefaultWalletKeys();
126124
const keysObj = toKeychainObjects(rootWalletKey, 'pass');
127125

@@ -189,10 +187,6 @@ describe('BTC:', () => {
189187
});
190188

191189
it('should detect hex spoofing in fanout BUILD_SIGN_SEND', async (): Promise<void> => {
192-
const {
193-
getDefaultWalletKeys,
194-
toKeychainObjects,
195-
} = require('../../../bitgo/test/v2/unit/coins/utxo/util/keychains');
196190
const rootWalletKey = getDefaultWalletKeys();
197191
const keysObj = toKeychainObjects(rootWalletKey, 'pass');
198192

0 commit comments

Comments
 (0)