Skip to content

Commit fbdf948

Browse files
feat(root): use ES imports instead of TypeScript import equals
For compatibility with mocha/node ESM TICKET: WP-0000
1 parent b391ed8 commit fbdf948

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

examples/ts/sol/utils/nonce-account-creation/generate-nonce-accounts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { KeyPair, TransactionBuilderFactory, WalletInitializationBuilder } from "@bitgo/sdk-coin-sol";
22
import { coins } from '@bitgo/statics';
33
import { Connection, NONCE_ACCOUNT_LENGTH, PublicKey, clusterApiUrl, LAMPORTS_PER_SOL } from "@solana/web3.js";
4-
import assert = require("assert");
4+
import assert from 'assert';
55
import { readFileSync, writeFileSync } from "fs";
66

77
// This script will generate nonce accounts for a given main account

examples/ts/tss-recovery/eddsa-recovery.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Eddsa } from '@bitgo/sdk-core';
22
import * as fs from 'fs';
3-
import assert = require('assert');
3+
import assert from 'assert';
44
import { bigIntFromBufferBE, bigIntFromBufferLE, Ed25519Bip32HdTree } from '@bitgo/sdk-lib-mpc';
55
import sjcl = require('sjcl');
66

examples/ts/tss-recovery/mpcv2-recovery.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { ECDSAUtils } from '@bitgo/sdk-core';
22
import * as crypto from 'crypto';
33
import * as fs from 'fs';
44
import * as secp256k1 from 'secp256k1';
5-
import assert = require('assert');
5+
import assert from 'assert';
66
import { bigIntFromBufferBE, bigIntToBufferBE, HDTree, Secp256k1Bip32HdTree } from '@bitgo/sdk-lib-mpc';
77

88
const sampleMessage = "Hello, World!";

scripts/tests/prepareRelease/fixtures/diffs/beta-prerelease.diff

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ index adcd1a70e..c17617aa9 100644
570570
+++ b/modules/bitgo/test/unit/bitgo.ts
571571
@@ -7,13 +7,13 @@ import * as nock from 'nock';
572572
import * as should from 'should';
573-
import assert = require('assert');
573+
import assert from 'assert';
574574

575575
-import { common, generateGPGKeyPair } from '@bitgo/sdk-core';
576576
-import { bip32, ECPair } from '@bitgo/utxo-lib';
@@ -1318,7 +1318,7 @@ index c605d07fa..e96309659 100644
13181318
import { BitGo } from '../../../../src';
13191319
-import { BlsUtils, common, IBlsKeyPair, Keychain } from '@bitgo/sdk-core';
13201320
+import { BlsUtils, common, IBlsKeyPair, Keychain } from '@bitgo-beta/sdk-core';
1321-
import assert = require('assert');
1321+
import assert from 'assert';
13221322
-import { Eth2 } from '@bitgo/sdk-coin-eth2';
13231323
+import { Eth2 } from '@bitgo-beta/sdk-coin-eth2';
13241324

0 commit comments

Comments
 (0)