diff --git a/web/src/app/[cat]/InteractionClient.tsx b/web/src/app/[cat]/InteractionClient.tsx index e5ef1ff7..61f3b8ff 100644 --- a/web/src/app/[cat]/InteractionClient.tsx +++ b/web/src/app/[cat]/InteractionClient.tsx @@ -423,7 +423,7 @@ export default function InteractionClient() { }; console.log('Contract returned maxMintableAmount:', { - raw: maxMintable.toString(), + raw: (maxMintable as bigint).toString(), formatted: maxMintableAmountNumber, currentSupply: newTokenDetails.currentSupply, maxSupply: newTokenDetails.maxSupply, diff --git a/web/src/app/create/page.tsx b/web/src/app/create/page.tsx index 7ebb5c8e..19464a46 100644 --- a/web/src/app/create/page.tsx +++ b/web/src/app/create/page.tsx @@ -110,9 +110,9 @@ const fields = [ description: "Maximum supply expansion rate per year, for expansions above the supply threshold.", validate: (value: string) => ({ isValid: /^\d+$/.test(value) && - parseInt(value) >= 1 && + parseInt(value) >= 0 && parseInt(value) <= 100, - errorMessage: "Expansion rate must be between 1 and 100" + errorMessage: "Expansion rate must be between 0 and 100" }) }, ];