Skip to content

Commit

Permalink
fixed qc mint nft
Browse files Browse the repository at this point in the history
  • Loading branch information
dan13ram committed Mar 13, 2024
1 parent 8263e55 commit 0491b17
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions packages/web/components/QuestChain/MintNFTTile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ export const MintNFTTile: React.FC<MintNFTTileProps> = ({
provider.getSigner(),
);

const tx = await (questChain.version === '1'
? (contract as contracts.V1.QuestChain).mintToken()
: (contract as contracts.V0.QuestChain).mintToken(address));
const tx = await (questChain.version === '0'
? (contract as contracts.V0.QuestChain).mintToken(address)
: (contract as contracts.V1.QuestChain).mintToken());
addToast({
description: 'Transaction submitted. Waiting for 1 block confirmation',
duration: null,
Expand Down Expand Up @@ -99,8 +99,7 @@ export const MintNFTTile: React.FC<MintNFTTileProps> = ({
}
}, [onSuccess, questChain, address, chainId, provider, addToast]);

const details =
QuestChainPlaybooksDetails[name];
const details = QuestChainPlaybooksDetails[name];
const image = details?.image;

return (
Expand Down

0 comments on commit 0491b17

Please sign in to comment.