Skip to content

Commit

Permalink
fix: correct quote bug and update dockerfile workdir path (#962)
Browse files Browse the repository at this point in the history
Co-authored-by: fx0x55 <[email protected]>
  • Loading branch information
zakir-code and fx0x55 authored Jan 26, 2025
1 parent 54ed53d commit 1e0612b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ RUN make build

FROM alpine:3.19

WORKDIR root
WORKDIR /root

COPY --from=builder /app/build/bin/fxcored /usr/bin/fxcored

Expand Down
3 changes: 3 additions & 0 deletions contract/bridge_fee_quote.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ func (k BridgeFeeQuoteKeeper) GetQuoteById(ctx context.Context, id *big.Int) (IB
if err := k.QueryContract(sdk.UnwrapSDKContext(ctx), k.from, k.contract, k.abi, "getQuoteById", &res, id); err != nil {
return IBridgeFeeQuoteQuoteInfo{}, err
}
if res.Quote.Id.Sign() <= 0 {
return IBridgeFeeQuoteQuoteInfo{}, sdkerrors.ErrInvalidRequest.Wrapf("quote not found")
}
return res.Quote, nil
}

Expand Down

0 comments on commit 1e0612b

Please sign in to comment.