nft_batch_minting's People
Forkers
msgpo harikharan07 mehyar500 lunknao guyyugpo vldmr1986 venkidesh lloc anarcypher ancutadaniel germinsky ademuk ypenn21 aramistoo vibhor0911 devx143 lytv swapnilkd flexbronson ianwatson115 iyad87 tomasbanik faiskhan lunicsergiu ocwc22 scl-t eddy98 matijaosojnik dahi52 kerorojason devnadd adamzulqarnain zmok-io super-sam-code alienguise premtive sagzig hryer yasamnik longjoe76 edwinguo josharagon mampudi 202chaz oriklein toyeade1 startup-hack wepobid tinghui520 ppmars collierscott sburnbaum14 mrkrispy123 harshameghadri web-consult-ng gishka0x ksiva gelo-s jurej1 our-expansion malfoufa nwkcoins michaelzihongfan 0xdamiantest a5347354 jackiechenqq beckerprime geoffanoke qalander sionaimzz gadgetboy27 ulrichja sword-zgz gmlwnswkdwkdaos gigantecmedia rinnesixpaths awoo2000 dr-pablo alanwatts07 behnamborhani 0rtrwv arshroop-saini djammy33 sanelez mng84 joshbellingham oniforo enkuushp aaronsmart iakofe dommj00 dobermensch bbooeess brigettevaldez kuicpet july-jio vitorcostas nwokocha4 thorzambo burakiskendernft_batch_minting's Issues
ADDRESS ERROR
Cannot read property 'address' of undefined
at Object. (D:\nft\scripts\mint.js:5:81)
im getting this error, how can i fixed it?
Error on scripts/mint.js
I think you have the wrong variable on the script:
for (var i = 0; i < amountToMint; i++){
await nftContract.methods.mint().send({ from: account, value: totalCost, gas: gas})
}
this will run 5 times but total cost is already 5 eth - so this will send 25 eth in total- the value field should be baseCost
also on the NFT.sol contract on line 42 i think you should be using
require(supply < maxSupply);
instead of
require(supply <= maxSupply);
the reason being that if you're already AT the max supply then it'll still mint one more.
<ps love the videos - thanks loads for doing this>
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.