Skip to content

Commit

Permalink
πŸ› Fix product name column
Browse files Browse the repository at this point in the history
  • Loading branch information
KONFeature committed Oct 7, 2024
1 parent f708fb1 commit 40624e4
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions packages/ponder/src/product.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,9 @@ ponder.on("ProductRegistry:ProductMinted", async ({ event, context }) => {
await Product.create({
id: event.args.productId,
data: {
name: event.args.name,
formattedName: isHex(event.args.name)
name: isHex(event.args.name)
? hexToString(event.args.name)
: undefined,
: event.args.name,
domain: event.args.domain,
productTypes: event.args.productTypes,
createTimestamp: event.block.timestamp,
Expand All @@ -44,9 +43,6 @@ ponder.on("ProductRegistry:ProductUpdated", async ({ event, context }) => {
id: event.args.productId,
data: ({ current }) => ({
name: event.args.name,
formattedName: isHex(event.args.name)
? hexToString(event.args.name)
: undefined,
productTypes: event.args.productTypes,
lastUpdateTimestamp: event.block.timestamp,
metadataUrl: metadataUrl ?? current.metadataUrl,
Expand Down

0 comments on commit 40624e4

Please sign in to comment.