Skip to content

Commit 7903830

Browse files
committed
chore: fix listing
1 parent c424a5c commit 7903830

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/mappings/baseDiamond.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -255,10 +255,9 @@ export function handleClaimAavegotchi(event: ClaimAavegotchi): void {
255255
portal.claimedTime = event.block.timestamp;
256256

257257
if (portal.activeListing) {
258-
let listing = getOrCreateERC721Listing(
259-
portal.activeListing!.toString(),
260-
false
261-
);
258+
let listing = ERC721Listing.load(portal.activeListing!.toString());
259+
260+
log.debug("Listing: {}", [listing?.id!]);
262261

263262
//Listings may not exist on Base because the listing IDs were migrated too
264263
if (listing == null || !listing) {
@@ -268,6 +267,8 @@ export function handleClaimAavegotchi(event: ClaimAavegotchi): void {
268267
event.transaction.hash.toHexString(),
269268
]);
270269
} else {
270+
log.debug("Update ERC721Listing: {}", [listing?.id!]);
271+
271272
listing = updateERC721ListingInfo(listing, portal.activeListing!, event);
272273
listing.cancelled = true;
273274
listing.save();

0 commit comments

Comments
 (0)