Skip to content

Commit

Permalink
fix: remove redundant logic
Browse files Browse the repository at this point in the history
  • Loading branch information
juanmahidalgo committed Jan 29, 2025
1 parent 79bb2a9 commit df16d04
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions indexer/src/modules/nft/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ export function cancelActiveOrder(nft: NFT, now: BigInt): boolean {
return false
}


export function handleTransferOrder(nft: NFT | null, to: Bytes): void {
if (nft != null && nft.activeOrder != null) {
let oldOrder = Order.load(nft.activeOrder!)
Expand All @@ -91,9 +90,7 @@ export function handleTransferOrder(nft: NFT | null, to: Bytes): void {
oldOrder.status = status.OPEN
oldOrder.save()
nft.searchOrderStatus = status.OPEN
} else {
nft.searchOrderStatus = status.TRANSFERRED
}
}
}
}
}

0 comments on commit df16d04

Please sign in to comment.