mirror of
https://github.com/embarklabs/ethereumjs-wallet.git
synced 2025-01-28 11:24:50 +00:00
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…
x
Reference in New Issue
Block a user