Skip to content

Commit

Permalink
Merge pull request #61 from ethereumjs/fix-provider-engine
Browse files Browse the repository at this point in the history
Make opts field optional in WalletSubprovider
  • Loading branch information
axic authored Jul 28, 2018
2 parents b72fe4c + 38d1601 commit 71a51f1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions provider-engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ module.exports = WalletSubprovider
inherits(WalletSubprovider, HookedWalletEthTxSubprovider)

function WalletSubprovider (wallet, opts) {
opts = opts || {}

opts.getAccounts = function (cb) {
cb(null, [ wallet.getAddressString() ])
}
Expand Down

0 comments on commit 71a51f1

Please sign in to comment.