Skip to content

Commit

Permalink
fix ci/cd
Browse files Browse the repository at this point in the history
  • Loading branch information
chowbao committed Feb 3, 2025
1 parent a3846f2 commit fc6b854
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion ingest/ledger_operation.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,14 @@ func (o *LedgerOperation) OperationTraceCode() (string, error) {
var operationTraceCode string
var operationResults []xdr.OperationResult
var ok bool
var err error

operationResults, ok = o.Transaction.Result.Result.OperationResults()
if ok {
var operationResultTr xdr.OperationResultTr
operationResultTr, ok = operationResults[o.OperationIndex].GetTr()
if ok {
operationTraceCode, err := operationResultTr.MapOperationResultTr()
operationTraceCode, err = operationResultTr.MapOperationResultTr()
if err != nil {
return "", err
}
Expand Down
4 changes: 3 additions & 1 deletion ingest/liquidity_pool_deposit_details.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,12 @@ func (o *LedgerOperation) LiquidityPoolDepositDetails() (LiquidityPoolDepositDet
assetA, assetB xdr.Asset
depositedA, depositedB xdr.Int64
sharesReceived xdr.Int64
lp *xdr.LiquidityPoolEntry
delta *LiquidityPoolDelta
)
if o.Transaction.Successful() {
// we will use the defaults (omitted asset and 0 amounts) if the transaction failed
lp, delta, err := o.getLiquidityPoolAndProductDelta(&op.LiquidityPoolId)
lp, delta, err = o.getLiquidityPoolAndProductDelta(&op.LiquidityPoolId)
if err != nil {
return LiquidityPoolDepositDetail{}, err
}
Expand Down
4 changes: 3 additions & 1 deletion ingest/liquidity_pool_withdraw_details.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,12 @@ func (o *LedgerOperation) LiquidityPoolWithdrawDetails() (LiquidityPoolWithdrawD
var (
assetA, assetB xdr.Asset
receivedA, receivedB xdr.Int64
lp *xdr.LiquidityPoolEntry
delta *LiquidityPoolDelta
)
if o.Transaction.Successful() {
// we will use the defaults (omitted asset and 0 amounts) if the transaction failed
lp, delta, err := o.getLiquidityPoolAndProductDelta(&op.LiquidityPoolId)
lp, delta, err = o.getLiquidityPoolAndProductDelta(&op.LiquidityPoolId)
if err != nil {
return LiquidityPoolWithdrawDetail{}, err
}
Expand Down

0 comments on commit fc6b854

Please sign in to comment.