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 6f0453c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion node/impl/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,13 @@ func (a *API) ClientStartDeal(ctx context.Context, params *api.StartDealParams)
}
}
}
exist, err := a.WalletHas(ctx, params.Wallet)

walletKey, err := a.StateAPI.StateManager.ResolveToKeyAddress(ctx, params.Wallet, nil)
if err != nil {
return nil, xerrors.Errorf("failed resolving params.Wallet addr: %w", params.Wallet)
}

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 6f0453c

Please sign in to comment.