Skip to content

Commit

Permalink
mint: support for cost()
Browse files Browse the repository at this point in the history
  • Loading branch information
theshadowagent authored Dec 21, 2021
1 parent bec7971 commit 10c7cb8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mint/web3.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ const getMintTx = ({ numberOfTokens, ref, tier, wallet }) => {
const getMintPrice = async (tier) => {
if (NFTContract.methods.price)
return NFTContract.methods.price().call();
if (NFTContract.methods.cost)
return NFTContract.methods.cost().call();
return tier ?
await NFTContract.methods.getPrice(tier).call() :
await NFTContract.methods.getPrice().call();
Expand Down

0 comments on commit 10c7cb8

Please sign in to comment.