Make opts field optional in WalletSubprovider
This commit is contained in:
parent
b72fe4c0dc
commit
38d1601311
|
@ -8,6 +8,8 @@ module.exports = WalletSubprovider
|
|||
inherits(WalletSubprovider, HookedWalletEthTxSubprovider)
|
||||
|
||||
function WalletSubprovider (wallet, opts) {
|
||||
opts = opts || {}
|
||||
|
||||
opts.getAccounts = function (cb) {
|
||||
cb(null, [ wallet.getAddressString() ])
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue