Skip to content
This repository was archived by the owner on Jun 17, 2021. It is now read-only.

Commit 7bb802f

Browse files
committed
Use import syntax for ethjs-util internally
1 parent 6a2cf9e commit 7bb802f

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/account.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const ethjsUtil = require('ethjs-util')
1+
import * as ethjsUtil from 'ethjs-util'
22
import * as assert from 'assert'
33
import * as secp256k1 from 'secp256k1'
44
import * as BN from 'bn.js'

src/bytes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const ethjsUtil = require('ethjs-util')
1+
import * as ethjsUtil from 'ethjs-util'
22
import * as BN from 'bn.js'
33
import { assertIsBuffer, assertIsArray, assertIsHexString } from './helpers'
44

src/hash.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const createKeccakHash = require('keccak')
22
const createHash = require('create-hash')
3-
const ethjsUtil = require('ethjs-util')
3+
import * as ethjsUtil from 'ethjs-util'
44
import * as rlp from 'rlp'
55
import { toBuffer, setLengthLeft } from './bytes'
66

src/helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const ethjsUtil = require('ethjs-util')
1+
import * as ethjsUtil from 'ethjs-util'
22

33
/**
44
* Throws if a string is not hex prefixed

src/object.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const ethjsUtil = require('ethjs-util')
1+
import * as ethjsUtil from 'ethjs-util'
22
import * as assert from 'assert'
33
import * as rlp from 'rlp'
44
import { toBuffer, baToJSON, unpadBuffer } from './bytes'

0 commit comments

Comments
 (0)