Skip to content

Commit

Permalink
Update polter.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
cinnabarhorse committed Nov 26, 2024
1 parent 2cc81df commit 3add188
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/mappings/polter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1897,16 +1897,15 @@ export function handleTransfer(event: Transfer): void {
let portal = getOrCreatePortal(tokenId, false);

if (gotchi) {
log.info("Gotchi found for bridged back aavegotchi: {}", [tokenId]);
gotchi = updateAavegotchiInfo(gotchi, event.params._tokenId, event);
gotchi = updateAavegotchiWearables(gotchi, event);
gotchi.claimedAt = event.block.number;
gotchi.claimedTime = event.block.timestamp;
gotchi.gotchiId = event.params._tokenId;

log.info("Saving Gotchi: {}", [tokenId]);
gotchi.save();
}

if (portal) {
log.info("Portal found for bridged back portal: {}", [tokenId]);
portal.owner = newOwner.id;
portal.save();
}
Expand Down

0 comments on commit 3add188

Please sign in to comment.