Skip to content

Commit

Permalink
Update some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
wyze committed Jan 28, 2022
1 parent 7d5a881 commit 1dcb92b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions subgraphs/bridgeworld/src/mappings/crafting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions subgraphs/bridgeworld/src/mappings/treasure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 1dcb92b

Please sign in to comment.