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

Commit 71a51f1

Browse files
authored
Merge pull request #61 from ethereumjs/fix-provider-engine
Make opts field optional in WalletSubprovider
2 parents b72fe4c + 38d1601 commit 71a51f1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

provider-engine.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ module.exports = WalletSubprovider
88
inherits(WalletSubprovider, HookedWalletEthTxSubprovider)
99

1010
function WalletSubprovider (wallet, opts) {
11+
opts = opts || {}
12+
1113
opts.getAccounts = function (cb) {
1214
cb(null, [ wallet.getAddressString() ])
1315
}

0 commit comments

Comments
 (0)