Skip to content

Commit

Permalink
Merge pull request #4122 from filecoin-project/asr/client-wallet
Browse files Browse the repository at this point in the history
Convert ID addresses to key addresses before checking wallet
  • Loading branch information
magik6k authored Oct 4, 2020
2 parents e326977 + 6f0453c commit 97087fe
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 97087fe

Please sign in to comment.