Skip to content

Commit

Permalink
Add default value for decimals
Browse files Browse the repository at this point in the history
  • Loading branch information
anastasiarods committed Apr 2, 2024
1 parent 90ab0f7 commit 25c81c7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/web/src/lib/contract-loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ export const ContractMetaStoreLive = Layer.effect(
prisma.contractMeta.create({
data: {
...contractMeta,
decimals: contractMeta.decimals ?? 0,
address: normAddress,
chainID: chainID,
},
Expand Down

0 comments on commit 25c81c7

Please sign in to comment.