fix linting issues; missing requires and params

pull/5370/head
Iuri Matias 5 years ago
parent d7ac146fa4
commit 0062810cb9
  1. 2
      src/blockchain/blockchain.js
  2. 1
      src/blockchain/providers/injected.js
  3. 1
      src/blockchain/providers/node.js
  4. 5
      src/blockchain/providers/vm.js

@ -11,8 +11,6 @@ const Personal = require('web3-eth-personal')
const Web3 = require('web3')
const async = require('async')
const { BN, privateToAddress, isValidPrivate, stripHexPrefix } = require('ethereumjs-util')
const crypto = require('crypto')
const { EventEmitter } = require('events')
const { resultToRemixTx } = require('./txResultHelper')

@ -1,4 +1,5 @@
const Web3 = require('web3')
const { stripHexPrefix } = require('ethereumjs-util')
class InjectedProvider {

@ -1,4 +1,5 @@
const Web3 = require('web3')
const { stripHexPrefix } = require('ethereumjs-util')
class NodeProvider {

@ -1,5 +1,6 @@
const Web3 = require('web3')
const { privateToAddress, toChecksumAddress } = require('ethereumjs-util')
const { BN, privateToAddress, toChecksumAddress, isValidPrivate, stripHexPrefix } = require('ethereumjs-util')
const crypto = require('crypto')
class VMProvider {
@ -43,7 +44,7 @@ class VMProvider {
this.accounts[toChecksumAddress('0x' + address.toString('hex'))] = { privateKey, nonce: 0 }
}
createVMAccount (passwordPromptCb, cb) {
createVMAccount (newAccount) {
const { privateKey, balance } = newAccount
this._addAccount(privateKey, balance)
const privKey = Buffer.from(privateKey, 'hex')

Loading…
Cancel
Save