Skip to content

Commit

Permalink
fix: lending cancel issue
Browse files Browse the repository at this point in the history
  • Loading branch information
orionstardust committed Jan 9, 2024
1 parent 990aaeb commit 9dbeadd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions src/mappings/diamond.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1045,6 +1045,13 @@ export function handleWhitelistOwnershipTransferred(
createOrUpdateWhitelist(event.params.whitelistId, event);
}

export function handleGotchiLendingCancel(event: GotchiLendingCancel): void {
let lending = getOrCreateGotchiLending(event.params.listingId);
// lending = updateGotchiLending(lending, event);
lending.cancelled = true;
lending.save();
}

export function handleERC1155ExecutedToRecipient(
event: ERC1155ExecutedToRecipient
): void {
Expand Down
4 changes: 2 additions & 2 deletions subgraph.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ dataSources:
# handler: handleGotchiLendingEnd
# - event: GotchiLendingExecute(indexed uint32)
# handler: handleGotchiLendingExecute
# - event: GotchiLendingCancel(indexed uint32,uint256)
# handler: handleGotchiLendingCancel
- event: GotchiLendingCancel(indexed uint32,uint256)
handler: handleGotchiLendingCancel
- event: ERC1155ExecutedToRecipient(indexed uint256,indexed address,indexed address)
handler: handleERC1155ExecutedToRecipient
- event: ERC721ExecutedToRecipient(indexed uint256,indexed address,indexed address)
Expand Down

0 comments on commit 9dbeadd

Please sign in to comment.