From 8364959bc09baa4d89e78389b82766d26e92fa34 Mon Sep 17 00:00:00 2001 From: Cayod Date: Thu, 1 Feb 2024 13:30:31 -0300 Subject: [PATCH] Change logic of if statment in TransformAsset --- internal/transform/asset.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/transform/asset.go b/internal/transform/asset.go index beec2540..ae676c4a 100644 --- a/internal/transform/asset.go +++ b/internal/transform/asset.go @@ -23,7 +23,7 @@ func TransformAsset(operation xdr.Operation, operationIndex int32, transactionIn switch opType { case xdr.OperationTypeManageSellOffer: opSellOf, ok := operation.Body.GetManageSellOfferOp() - if ok { + if !ok { return AssetOutput{}, fmt.Errorf("operation of type ManageSellOfferOp cannot issue an asset (id %d)", operationID) } asset = opSellOf.Selling