Skip to content

Commit

Permalink
[SDK] Fix SigMint detection for OSRF NFT Collection contracts (#438)
Browse files Browse the repository at this point in the history
  • Loading branch information
joaquim-verges committed Dec 2, 2022
1 parent ee47840 commit f451da6
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 7 deletions.
6 changes: 6 additions & 0 deletions .changeset/green-pans-wash.md
@@ -0,0 +1,6 @@
---
"@thirdweb-dev/contracts-js": patch
"@thirdweb-dev/sdk": patch
---

Fix SigMint detection for OSRF NFT Collection contracts
2 changes: 1 addition & 1 deletion packages/contracts-js/package.json
Expand Up @@ -6,7 +6,7 @@
"license": "Apache-2.0",
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/contracts-js",
"dependencies": {
"@thirdweb-dev/contracts": "^3.2.2"
"@thirdweb-dev/contracts": "3.2.8-0"
},
"devDependencies": {
"@babel/preset-env": "^7.18.10",
Expand Down
4 changes: 2 additions & 2 deletions packages/sdk/src/evm/constants/erc721-features.ts
Expand Up @@ -12,8 +12,8 @@ import ILazyMintAbi from "@thirdweb-dev/contracts-js/dist/abis/ILazyMint.json";
import IMintableERC721Abi from "@thirdweb-dev/contracts-js/dist/abis/IMintableERC721.json";
import MulticallAbi from "@thirdweb-dev/contracts-js/dist/abis/IMulticall.json";
import SignatureMintERC721Abi from "@thirdweb-dev/contracts-js/dist/abis/ISignatureMintERC721.json";
import SignatureMintERC721_V1Abi from "@thirdweb-dev/contracts-js/dist/abis/ISignatureMintERC721_V1.json";
import TieredDropAbi from "@thirdweb-dev/contracts-js/dist/abis/LazyMintWithTier.json";
import TokenERC721Abi from "@thirdweb-dev/contracts-js/dist/abis/TokenERC721.json";

export const FEATURE_NFT_BURNABLE = {
name: "ERC721Burnable",
Expand Down Expand Up @@ -163,7 +163,7 @@ export const FEATURE_NFT_SIGNATURE_MINTABLE_V1 = {
sdk: "sdk.erc721signaturemint",
contracts: "ISignatureMintERC721",
},
abis: [TokenERC721Abi],
abis: [SignatureMintERC721_V1Abi],
features: {},
} as const;

Expand Down
1 change: 1 addition & 0 deletions packages/sdk/src/evm/schema/contracts/index.ts
Expand Up @@ -8,3 +8,4 @@ export * from "./token-erc20";
export * from "./token-erc721";
export * from "./token-erc1155";
export * from "./vote";
export * from "./custom";
8 changes: 4 additions & 4 deletions yarn.lock
Expand Up @@ -5526,10 +5526,10 @@
"@tanstack/query-core" "4.18.0"
use-sync-external-store "^1.2.0"

"@thirdweb-dev/contracts@^3.2.2":
version "3.2.7"
resolved "https://registry.yarnpkg.com/@thirdweb-dev/contracts/-/contracts-3.2.7.tgz#8adf3599a25833dac6e2b31ea022638357cd1d1c"
integrity sha512-QTIHqQ8h0EquG90pSIDLWoCfVg2saPvzGFzzr+eK7lpKHIYOHEoUbvWuDkKRLcQiOsPRe3yyMNgroL038JqPeg==
"@thirdweb-dev/contracts@3.2.8-0":
version "3.2.8-0"
resolved "https://registry.yarnpkg.com/@thirdweb-dev/contracts/-/contracts-3.2.8-0.tgz#74a5775deece2f143d1f4d2d96920efc1f8659df"
integrity sha512-yoFoXx2s/baxZx05WYgTGIb6ze/pUwLQ2CkiK9ms3IoUY51mlmN0T8bbRBAJlQBMqJuHRGk4HzB+BUrpFYAZig==

"@tootallnate/once@1":
version "1.1.2"
Expand Down

0 comments on commit f451da6

Please sign in to comment.