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

Commit

Permalink
Limited ethereumjs-util import scope in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
holgerd77 committed May 1, 2020
1 parent f787d47 commit 0fa10db
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* tslint:disable no-invalid-this */
import * as assert from 'assert'
import * as ethUtil from 'ethereumjs-util'
import { BN } from 'ethereumjs-util'
import { Wallet as ethersWallet } from 'ethers'

const zip = require('lodash.zip')
Expand Down Expand Up @@ -156,10 +156,10 @@ describe('.generate()', function() {
assert.strictEqual(Wallet.generate().getPrivateKey().length, 32)
})
it('should generate an account compatible with ICAP Direct', function() {
const max = new ethUtil.BN('088f924eeceeda7fe92e1f5b0fffffffffffffff', 16)
const max = new BN('088f924eeceeda7fe92e1f5b0fffffffffffffff', 16)
const wallet = Wallet.generate(true)
assert.strictEqual(wallet.getPrivateKey().length, 32)
assert.strictEqual(new ethUtil.BN(wallet.getAddress()).lte(max), true)
assert.strictEqual(new BN(wallet.getAddress()).lte(max), true)
})
})

Expand Down

0 comments on commit 0fa10db

Please sign in to comment.