diff --git a/subgraphs/bridgeworld/src/mappings/crafting.ts b/subgraphs/bridgeworld/src/mappings/crafting.ts index cd0e53bb..1f3c18f9 100644 --- a/subgraphs/bridgeworld/src/mappings/crafting.ts +++ b/subgraphs/bridgeworld/src/mappings/crafting.ts @@ -28,6 +28,7 @@ export function handleCraftingStarted(event: CraftingStarted): void { return; } + // TODO: Add treasures sent in for craft craft.endTimestamp = finishTime.times(BigInt.fromI32(1000)); craft.token = getAddressId(LEGION_ADDRESS, tokenId); craft.random = random.id; diff --git a/subgraphs/bridgeworld/src/mappings/treasure.ts b/subgraphs/bridgeworld/src/mappings/treasure.ts index ca11b5c5..3a0a31ad 100644 --- a/subgraphs/bridgeworld/src/mappings/treasure.ts +++ b/subgraphs/bridgeworld/src/mappings/treasure.ts @@ -160,7 +160,7 @@ function setMetadata(contract: Address, tokenId: BigInt): void { let token = Token.load(getAddressId(contract, tokenId)); if (!token) { - log.error("Unknown token: {}", [tokenId.toString()]); + log.error("[treasure-metadata] Unknown token: {}", [tokenId.toString()]); return; } @@ -190,7 +190,7 @@ export function handleApprovalForAll(event: ApprovalForAll): void { let user = User.load(userId); if (!user) { - log.error("Unknown user: {}", [userId]); + log.error("[treasure-approval] Unknown user: {}", [userId]); return; }