mirror of
https://github.com/embarklabs/ethereumjs-wallet.git
synced 2025-02-06 15:54:18 +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)
|
inherits(WalletSubprovider, HookedWalletEthTxSubprovider)
|
||||||
|
|
||||||
function WalletSubprovider (wallet, opts) {
|
function WalletSubprovider (wallet, opts) {
|
||||||
|
opts = opts || {}
|
||||||
|
|
||||||
opts.getAccounts = function (cb) {
|
opts.getAccounts = function (cb) {
|
||||||
cb(null, [ wallet.getAddressString() ])
|
cb(null, [ wallet.getAddressString() ])
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user