Make opts field optional in WalletSubprovider

This commit is contained in:
Alex Beregszaszi 2018-07-28 19:36:53 +01:00
parent b72fe4c0dc
commit 38d1601311
1 changed files with 2 additions and 0 deletions

View File

@ -8,6 +8,8 @@ module.exports = WalletSubprovider
inherits(WalletSubprovider, HookedWalletEthTxSubprovider)
function WalletSubprovider (wallet, opts) {
opts = opts || {}
opts.getAccounts = function (cb) {
cb(null, [ wallet.getAddressString() ])
}