Skip to content

Commit

Permalink
Change logic of if statment in TransformAsset
Browse files Browse the repository at this point in the history
  • Loading branch information
cayod committed Feb 1, 2024
1 parent da58012 commit 8364959
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/transform/asset.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8364959

Please sign in to comment.