fix serialization issues

This commit is contained in:
whyrusleeping
2019-07-20 16:37:38 -07:00
parent 38a5bcd659
commit 3f0c7f37f9
4 changed files with 44 additions and 1 deletions
+4 -1
View File
@@ -141,7 +141,10 @@ func (a *API) WalletSign(ctx context.Context, k address.Address, msg []byte) (*c
}
func (a *API) WalletDefaultAddress(ctx context.Context) (address.Address, error) {
addrs := a.Wallet.ListAddrs()
addrs, err := a.Wallet.ListAddrs()
if err != nil {
return address.Undef, err
}
// TODO: store a default address in the config or 'wallet' portion of the repo
return addrs[0], nil