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