File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff 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 ( ) ;
You can’t perform that action at this time.
0 commit comments