use wallet has instead of list

This commit is contained in:
whyrusleeping
2019-08-08 10:56:14 -07:00
parent 959fe371b0
commit 28ef081d0e
4 changed files with 12 additions and 9 deletions
+4
View File
@@ -244,6 +244,10 @@ func (a *FullNodeAPI) WalletNew(ctx context.Context, typ string) (address.Addres
return a.Wallet.GenerateKey(typ)
}
func (a *FullNodeAPI) WalletHas(ctx context.Context, addr address.Address) (bool, error) {
return a.Wallet.HasKey(addr)
}
func (a *FullNodeAPI) WalletList(ctx context.Context) ([]address.Address, error) {
return a.Wallet.ListAddrs()
}