Skip to content

Commit 10c7cb8

Browse files
mint: support for cost()
1 parent bec7971 commit 10c7cb8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mint/web3.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ const getMintTx = ({ numberOfTokens, ref, tier, wallet }) => {
1212
const getMintPrice = async (tier) => {
1313
if (NFTContract.methods.price)
1414
return NFTContract.methods.price().call();
15+
if (NFTContract.methods.cost)
16+
return NFTContract.methods.cost().call();
1517
return tier ?
1618
await NFTContract.methods.getPrice(tier).call() :
1719
await NFTContract.methods.getPrice().call();

0 commit comments

Comments
 (0)