Skip to content

Commit

Permalink
Update diamond.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
cinnabarhorse committed Nov 4, 2024
1 parent 9290143 commit a7a9e6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mappings/diamond.ts
Original file line number Diff line number Diff line change
Expand Up @@ -487,8 +487,8 @@ export function handleTransfer(event: Transfer): void {
let id = event.params._tokenId.toString();
let newOwner = getOrCreateUser(event.params._to.toHexString());
newOwner.save();
let gotchi = getOrCreateAavegotchi(id, event, false);
let portal = getOrCreatePortal(id, false);
let gotchi = getOrCreateAavegotchi(id, event, true);
let portal = getOrCreatePortal(id, true);
// ERC721 transfer can be portal or gotchi based, so we have to check it.
if (gotchi != null) {
if (!gotchi.modifiedRarityScore) {
Expand Down

0 comments on commit a7a9e6c

Please sign in to comment.