Skip to content

Commit

Permalink
Convert ID addresses to key addresses before checking wallet
Browse files Browse the repository at this point in the history
  • Loading branch information
arajasek committed Oct 1, 2020
1 parent 60d442e commit 8e8115f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion node/impl/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ func (a *API) ClientStartDeal(ctx context.Context, params *api.StartDealParams)
}
}
}
exist, err := a.WalletHas(ctx, params.Wallet)

walletKey, err := a.StateManager.ResolveToKeyAddress(ctx, params.Wallet, nil)
exist, err := a.WalletHas(ctx, walletKey)
if err != nil {
return nil, xerrors.Errorf("failed getting addr from wallet: %w", params.Wallet)
}
Expand Down

0 comments on commit 8e8115f

Please sign in to comment.