From 8cae3f2fc3df2642782cb0ab91c370bb3af8f3ce Mon Sep 17 00:00:00 2001 From: aramalipoor Date: Thu, 27 Oct 2022 11:08:51 +0200 Subject: [PATCH] fix: use full-form for minting function --- .../src/extensions/minting/useOwnerMinter.ts | 2 +- .../src/extensions/minting/useRoleBasedMinter.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-nft-collections/src/extensions/minting/useOwnerMinter.ts b/packages/react-nft-collections/src/extensions/minting/useOwnerMinter.ts index 480e5a1b8..a902bf4d4 100644 --- a/packages/react-nft-collections/src/extensions/minting/useOwnerMinter.ts +++ b/packages/react-nft-collections/src/extensions/minting/useOwnerMinter.ts @@ -29,7 +29,7 @@ export const useOwnerMinter = ({ contractInterface, contractAddress, signerOrProvider, - functionName: 'mintByOwner', + functionName: 'mintByOwner(address,uint256)', args: [toAddress, mintCount] as ArgsType, }); }; diff --git a/packages/react-nft-collections/src/extensions/minting/useRoleBasedMinter.ts b/packages/react-nft-collections/src/extensions/minting/useRoleBasedMinter.ts index e50f73406..bbdfe0ca8 100644 --- a/packages/react-nft-collections/src/extensions/minting/useRoleBasedMinter.ts +++ b/packages/react-nft-collections/src/extensions/minting/useRoleBasedMinter.ts @@ -29,7 +29,7 @@ export const useRoleBasedMinter = ({ contractInterface, contractAddress, signerOrProvider, - functionName: 'mintByRole', + functionName: 'mintByRole(address,uint256)', args: [toAddress, mintCount] as ArgsType, }); };