-
Notifications
You must be signed in to change notification settings - Fork 11
missing offer
event from event entity
#169
Comments
@vikiival any idea how to bypass |
Hey It means that NFT you are requesting is not in the DB. If you want simple hack just do if (!entity) {
console.warn('Entity not found.. Skipping')
return
} |
I have it as fatal error because I want to ensure that everything is validated |
This hack doesn't work for me. It break when const nftEntity = ensure<NE>(await get(context.store, NE, tokenId));
if (!nftEntity) {
return logger.warn(`[WITHDRAW OFFER] ${tokenId} entity not found.. Skipping`);
}
|
Ensure does not throw errors 👀 Wondering why do you have error for this? Which one do you use main or other release? |
hmmmm not sure about since one since it's the line I'm blocking on. const tokenId = tokenIdOf(event);
logger.debug(`token: ${tokenId}`); // token: 3132385849-1
// IMO this line throw error
const nftEntity = ensure<NE>(await get(context.store, NE, tokenId));
if (!nftEntity) {
logger.warn(`[WITHDRAW OFFER] ${tokenId} entity not found.. Skipping`);
return;
}
because there is a block on chain with a WITHDRAW OFFER event that is related on a non-existing Nft Entity
Start from release-004 since main is outdated. edit: don't you think it could come from |
Are there more types? |
lol I was afraid that was it but my file is the default one set on repo (same as you)
&
Maybe someone withdraw offer on snek but token Id is on bsx.
what about v71, v92 |
Tested on https://squid.subsquid.io/snekk/v/004/graphql & https://squid.subsquid.io/snekk/v/005/graphql
result
[]
The text was updated successfully, but these errors were encountered: