Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

Commit

Permalink
Linter fix
Browse files Browse the repository at this point in the history
Signed-off-by: Bartosz Solka <[email protected]>
  • Loading branch information
BartoszSolkaArianelabs committed Feb 8, 2024
1 parent d3b90a8 commit 4263d25
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/functions/increaseNFTSupply.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ export const increaseNFTSupply = async ({
validatePropsForIncreaseNFTSupply({ nftId, amount, supplyKey, batchSize });
return getMetaDataFromMirrorNode(network, nftId, mirrorNodeUrl)
.then((metaData) => mintSharedMetadataFunction({ client, tokenId: nftId.tokenId.toString(), amount, batchSize, metaData, supplyKey }));

};

async function getMetaDataFromMirrorNode(network: string, nftId: NftId, mirrorNodeUrl?: string): Promise<string> {
Expand All @@ -26,8 +25,8 @@ async function getMetaDataFromMirrorNode(network: string, nftId: NftId, mirrorNo
//atob is used to decode the base64 encoded metadata
return atob(response.data.metadata);
})
};
}

function getMirrorNodeUrlForNetwork(network: string): string {
return `https://${network === 'mainnet' ? 'mainnet-public' : network}.mirrornode.hedera.com/api/v1`;
};
}

0 comments on commit 4263d25

Please sign in to comment.