Skip to content

Commit

Permalink
client/core: Popuplate AssetConfig on PreRedeem call
Browse files Browse the repository at this point in the history
The asset config was not populated when calling PreRedeem in MaxSell.
This was causing a panic.
  • Loading branch information
martonp authored and chappjc committed Jul 19, 2022
1 parent 78dc765 commit a2bd6cf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client/core/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -3875,6 +3875,7 @@ func (c *Core) MaxSell(host string, base, quote uint32) (*MaxOrderEstimate, erro
preRedeem, err := quoteWallet.PreRedeem(&asset.PreRedeemForm{
Lots: maxSell.Lots,
FeeSuggestion: redeemFeeSuggestion,
AssetConfig: quoteAsset,
})
if err != nil {
return nil, fmt.Errorf("%s PreRedeem error: %v", unbip(quote), err)
Expand Down

0 comments on commit a2bd6cf

Please sign in to comment.