Skip to content

Commit

Permalink
fix: mintEndPeriod as Int
Browse files Browse the repository at this point in the history
  • Loading branch information
vibern0 committed Oct 29, 2024
1 parent 2ca2fe3 commit 7614a84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ type Avatar {
# balance of all tokens aggregated
balance: BigInt!
lastMint: Int
mintEndPeriod: BigInt
mintEndPeriod: Int
trustedByN: Int!
profile: Profile
}
Expand Down
2 changes: 1 addition & 1 deletion src/event_handlers/hubV2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ HubV2.PersonalMint.handler(async ({ event, context }) => {
context.Avatar.set({
...avatar,
lastMint: event.block.timestamp,
mintEndPeriod: event.params.endPeriod,
mintEndPeriod: parseInt(event.params.endPeriod.toString()),
});
}
});
Expand Down

0 comments on commit 7614a84

Please sign in to comment.