wallet: Don't return null from WalletList

This commit is contained in:
Łukasz Magiera 2020-11-09 18:42:43 +01:00
parent e1122404d1
commit 290414e935

View File

@ -90,7 +90,7 @@ func (m MultiWallet) WalletHas(ctx context.Context, address address.Address) (bo
}
func (m MultiWallet) WalletList(ctx context.Context) ([]address.Address, error) {
var out []address.Address
out := make([]address.Address, 0)
seen := map[address.Address]struct{}{}
ws := nonNil(m.Remote, m.Ledger, m.Local)