Skip to content

Commit

Permalink
Fix/skip_zero_percent_allowlist_creator (#1117)
Browse files Browse the repository at this point in the history
* v0.7.0

* v0.7.0

* fix(fe): sdk imports and skip 0 mint
  • Loading branch information
bitbeckers authored Oct 6, 2023
1 parent 39284c0 commit 480b79c
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 13 deletions.
2 changes: 1 addition & 1 deletion contracts/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@hypercerts-org/contracts",
"description": "EVM compatible protocol for managing impact claims",
"version": "0.4.0",
"version": "0.7.0",
"author": {
"name": "Hypercerts Foundation",
"url": "https://github.com/hypercerts-org/hypercerts"
Expand Down
18 changes: 10 additions & 8 deletions frontend/hooks/mintClaimAllowlist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,16 @@ export const useMintClaimAllowlist = ({
const allowlist: AllowlistEntry[] = parseAllowlistCsv(
htmlText,
deduplicate,
[
{
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
address: address!,
// Creator gets the rest for now
percentage: 1.0 - allowlistFraction,
},
],
allowlistFraction < 1
? [
{
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
address: address!,
// Creator gets the rest for now
percentage: 1.0 - allowlistFraction,
},
]
: undefined,
);
const totalSupply = allowlist.reduce(
(acc: bigint, x: AllowlistEntry) => acc + BigInt(x.units.toString()),
Expand Down
4 changes: 2 additions & 2 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
"@emotion/react": "^11.10.5",
"@emotion/styled": "^11.10.5",
"@graphprotocol/client-cli": "^2.2.16",
"@hypercerts-org/contracts": "0.4.0",
"@hypercerts-org/contracts": "0.7.0",
"@hypercerts-org/observabletreemap": "*",
"@hypercerts-org/sdk": "0.6.0",
"@hypercerts-org/sdk": "0.7.0",
"@mui/icons-material": "^5.11.9",
"@mui/material": "^5.11.2",
"@mui/x-date-pickers": "^5.0.12",
Expand Down
4 changes: 2 additions & 2 deletions sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hypercerts-org/sdk",
"version": "0.6.0",
"version": "0.7.0",
"description": "SDK for hypercerts protocol",
"repository": "[email protected]:hypercerts-org/hypercerts.git",
"author": "Hypercerts team",
Expand All @@ -27,7 +27,7 @@
"@ethereum-attestation-service/eas-sdk": "^0.28.3",
"@graphprotocol/client-add-source-name": "^1.0.16",
"@graphprotocol/client-cli": "^2.2.15",
"@hypercerts-org/contracts": "0.4.0",
"@hypercerts-org/contracts": "0.7.0",
"@openzeppelin/merkle-tree": "^1.0.4",
"@types/jest": "^29.2.5",
"ajv": "^8.11.2",
Expand Down

0 comments on commit 480b79c

Please sign in to comment.