From 7494b362b6b00f0173cd7d8141ae5c6633dd879d Mon Sep 17 00:00:00 2001 From: Kien Ngo Date: Thu, 28 Dec 2023 16:08:44 -0500 Subject: [PATCH] Fix erc20 claim conditions (#1129) * Fix typos * Fix syntax error --- .../extensions/erc20/erc20claimconditions.mdx | 2 +- .../prebuilt-contracts/token-drop.mdx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/typescript/interacting-with-contracts/extensions/erc20/erc20claimconditions.mdx b/docs/typescript/interacting-with-contracts/extensions/erc20/erc20claimconditions.mdx index 601172926..b2d8bdfe5 100644 --- a/docs/typescript/interacting-with-contracts/extensions/erc20/erc20claimconditions.mdx +++ b/docs/typescript/interacting-with-contracts/extensions/erc20/erc20claimconditions.mdx @@ -258,7 +258,7 @@ Returns an array of `ClaimCondition` objects. Get an array of reasons why a specific wallet address is not eligible to claim tokens, if any. ```javascript -const reasons = await contract.erc20.getClaimIneligibilityReasons( +const reasons = await contract.erc20.claimConditions.getClaimIneligibilityReasons( "{{quantity}}", // Quantity of tokens to claim "{{wallet_address}}", // Wallet address to check ); diff --git a/docs/typescript/interacting-with-contracts/prebuilt-contracts/token-drop.mdx b/docs/typescript/interacting-with-contracts/prebuilt-contracts/token-drop.mdx index 36238dbaf..3a8d26b44 100644 --- a/docs/typescript/interacting-with-contracts/prebuilt-contracts/token-drop.mdx +++ b/docs/typescript/interacting-with-contracts/prebuilt-contracts/token-drop.mdx @@ -672,7 +672,7 @@ An object containing role names as keys and an array of wallet addresses as the Get an array of reasons why a specific wallet address is not eligible to claim tokens, if any. ```javascript -const reasons = await contract.erc20.getClaimIneligibilityReasons( +const reasons = await contract.erc20.claimConditions.getClaimIneligibilityReasons( "{{quantity}}", // Quantity of tokens to claim "{{wallet_address}}", // Wallet address to check );