From 1dcb92b71e4ebf7e3e0408be4a1a76f67449b713 Mon Sep 17 00:00:00 2001 From: Neil Kistner Date: Fri, 28 Jan 2022 07:30:22 -0600 Subject: [PATCH] Update some comments --- subgraphs/bridgeworld/src/mappings/crafting.ts | 1 + subgraphs/bridgeworld/src/mappings/treasure.ts | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) 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; }