Skip to content

Commit

Permalink
Merge pull request #1746 from ArtBlocks/beny/plt-940-investigate-mint…
Browse files Browse the repository at this point in the history
…ing-issues-for-revdancatt-with-0

Lowercase wallet address for token holder comparison
  • Loading branch information
yoshiwarab authored Dec 12, 2024
2 parents 8a0fa1a + cb8b57f commit 1103d06
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@artblocks/sdk",
"version": "0.1.30-15",
"version": "0.1.30-16",
"description": "JavaScript SDK for configuring and using Art Blocks minters.",
"main": "dist/index.js",
"repository": "git@github.com:ArtBlocks/artblocks-sdk.git",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,9 @@ export async function getHolderMinterUserPurchaseContext(
// If the user has a token that is allowed for this project, we can proceed
// with the purchase. No need to specify a vault.
const userToken = userTokensRes.tokens_metadata.find(
(token) => token.owner_address === walletClient.account.address
(token) =>
token.owner_address.toLowerCase() ===
walletClient.account.address.toLowerCase()
);

if (userToken) {
Expand Down

0 comments on commit 1103d06

Please sign in to comment.