Giter VIP home page Giter VIP logo

hashlips_minting_card's Introduction

Welcome to HashLips ๐Ÿ‘„

All the code in these repos was created and explained by HashLips on the main YouTube channel.

To find out more please visit:

๐Ÿ“บ YouTube

๐Ÿ‘„ Discord

๐Ÿ’ฌ Telegram

๐Ÿฆ Twitter

โ„น๏ธ Website

HashLips NFT minting dapp ๐Ÿ”ฅ

This repo provides a nice and easy way for linking an existing NFT smart contract to this minting dapp.

Installation ๐Ÿ› ๏ธ

If you are cloning the project then run this first, otherwise you can download the source code on the release page and skip this step.

git clone https://github.com/HashLips/hashlips_minting_card.git

Make sure you have node.js installed so you can use npm, then run:

npm install

Usage โ„น๏ธ

This repo will be used in a youtube tutorial.

hashlips_minting_card's People

Contributors

hashlips avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

hashlips_minting_card's Issues

Hi Guys) Hope for your help

Question one:
I get this error: Unhandled Rejection (Error): Invalid number of parameters for "mint". Got 2 expected 1!
ABI is correct and I double-checked it 100 times. In this build (hashlips_nft_minting_dapp) everything works and in the build (hashlips_minting_card) everything does not work ((((

Question two:
Can you tell me how to get rid of this:
Error: [number-to-bn] while converting number 1e+21 to BN.js instance, error: invalid number value. Value must be an integer, hex string, BN or BigNumber instance. Note, decimals are not supported. Given value: "1e+21".

I sure hope you can help.

Additional buttons

How can I add additional buttons so people can mint like 20 directly without clicking the +

Unhandled Rejection (Error): Invalid number of parameters for "mint". Got 2 expected 1!

I entered the necessary information and abi, but I am getting this error:

mint
src/components/Minter.js:139

value: String( info.web3.utils.toHex(Number(mintInfo.cost) * mintInfo.amount) ), data: info.contract.methods .mint(info.account, mintInfo.amount) .encodeABI(), };

onClick
src/components/Minter.js:220

<button disabled={!info.connected || mintInfo.cost == "0"} className="button" onClick={() => mint()} > Mint {mintInfo.amount} </button>

A Config File

Hi Daniel,
Can you add a config file for easier adding info?
Thanks a lot. You are always amazing!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.