Skip to content
This repository was archived by the owner on Oct 30, 2024. It is now read-only.

Commit 5ec8756

Browse files
committed
Limited ethereumjs-util import scope in tests
1 parent 6a388e4 commit 5ec8756

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/index.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* tslint:disable no-invalid-this */
22
import * as assert from 'assert'
3-
import * as ethUtil from 'ethereumjs-util'
3+
import { BN } from 'ethereumjs-util'
44
import { Wallet as ethersWallet } from 'ethers'
55

66
const zip = require('lodash.zip')
@@ -160,10 +160,10 @@ describe('.generate()', function() {
160160
assert.strictEqual(Wallet.generate().getPrivateKey().length, 32)
161161
})
162162
it('should generate an account compatible with ICAP Direct', function() {
163-
const max = new ethUtil.BN('088f924eeceeda7fe92e1f5b0fffffffffffffff', 16)
163+
const max = new BN('088f924eeceeda7fe92e1f5b0fffffffffffffff', 16)
164164
const wallet = Wallet.generate(true)
165165
assert.strictEqual(wallet.getPrivateKey().length, 32)
166-
assert.strictEqual(new ethUtil.BN(wallet.getAddress()).lte(max), true)
166+
assert.strictEqual(new BN(wallet.getAddress()).lte(max), true)
167167
})
168168
})
169169

0 commit comments

Comments
 (0)