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

Commit

Permalink
Use import syntax for ethjs-util internally
Browse files Browse the repository at this point in the history
  • Loading branch information
cgewecke committed Apr 28, 2020
1 parent 6a2cf9e commit 7bb802f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/account.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const ethjsUtil = require('ethjs-util')
import * as ethjsUtil from 'ethjs-util'
import * as assert from 'assert'
import * as secp256k1 from 'secp256k1'
import * as BN from 'bn.js'
Expand Down
2 changes: 1 addition & 1 deletion src/bytes.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const ethjsUtil = require('ethjs-util')
import * as ethjsUtil from 'ethjs-util'
import * as BN from 'bn.js'
import { assertIsBuffer, assertIsArray, assertIsHexString } from './helpers'

Expand Down
2 changes: 1 addition & 1 deletion src/hash.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const createKeccakHash = require('keccak')
const createHash = require('create-hash')
const ethjsUtil = require('ethjs-util')
import * as ethjsUtil from 'ethjs-util'
import * as rlp from 'rlp'
import { toBuffer, setLengthLeft } from './bytes'

Expand Down
2 changes: 1 addition & 1 deletion src/helpers.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const ethjsUtil = require('ethjs-util')
import * as ethjsUtil from 'ethjs-util'

/**
* Throws if a string is not hex prefixed
Expand Down
2 changes: 1 addition & 1 deletion src/object.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const ethjsUtil = require('ethjs-util')
import * as ethjsUtil from 'ethjs-util'
import * as assert from 'assert'
import * as rlp from 'rlp'
import { toBuffer, baToJSON, unpadBuffer } from './bytes'
Expand Down

0 comments on commit 7bb802f

Please sign in to comment.