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

Commit 38d1601

Browse files
committed
Make opts field optional in WalletSubprovider
1 parent b72fe4c commit 38d1601

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)