Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gas Fees Error when Deplloying #2

Open
ankesh27 opened this issue Jan 8, 2022 · 28 comments
Open

Gas Fees Error when Deplloying #2

ankesh27 opened this issue Jan 8, 2022 · 28 comments

Comments

@ankesh27
Copy link

ankesh27 commented Jan 8, 2022

Hey Ali,

It's a great tutorial that you have provided.

I am facing an error while deploying my contract. (screenshot attached).

Can you please help me through?
Screenshot 2022-01-08 at 1 14 23 PM
Screenshot 2022-01-08 at 1 14 04 PM

@jimisphotos
Copy link

Same issue here! Searching for a solution, will post back if I can find anything.

@ManojPremarathna
Copy link

Same issue

@tclam55
Copy link

tclam55 commented Jan 12, 2022

same issue

@ankesh27
Copy link
Author

All,
Try starting afresh. Use new browser/incognito and delete all Cookies/local storage.

Logout and Login to Metamask wallet again.

I got it working this way.

@tclam55
Copy link

tclam55 commented Jan 12, 2022

mine still not yet resolve? r u using mac or window?

@ankesh27
Copy link
Author

ankesh27 commented Jan 12, 2022 via email

@serialstrifer
Copy link

I ran into the same issue. I fixed it by deleting the abstract folder that gets generated when you compile and restarting. So there are fresh json metadata files.

@TheSpecialNoob
Copy link

What abstract file was that?

@BlueRayZz
Copy link

BlueRayZz commented Feb 16, 2022

Where do I find that abstract folder?

@roedimat
Copy link

roedimat commented Mar 2, 2022

Getting this same error as well. Anybody find a fix?

I've tried the clear cookies option and had no luck.

@TheSpecialNoob
Copy link

TheSpecialNoob commented Mar 2, 2022 via email

@roedimat
Copy link

roedimat commented Mar 3, 2022

Okay, so delete the contents of the artifacts folder and then how do you set yourself as the owner?

@TheSpecialNoob
Copy link

TheSpecialNoob commented Mar 3, 2022 via email

@roedimat
Copy link

roedimat commented Mar 3, 2022

Not helping on my end. Sorry. Still get gas estimation error

@TheSpecialNoob
Copy link

TheSpecialNoob commented Mar 3, 2022 via email

@barjakuzu
Copy link

did anyone found any solution?

@Sevenrex
Copy link

Sevenrex commented Mar 8, 2022

any solutions yet?

@TheSpecialNoob
Copy link

TheSpecialNoob commented Mar 8, 2022 via email

@barjakuzu
Copy link

barjakuzu commented Mar 8, 2022

Screenshot 2022-03-08 at 5 28 44 PM

I think I found the solution, here there is written 20 by default, seems I had less then 20 pieces to minted, I changed to 1 and it worked :)

@Sevenrex
Copy link

Sevenrex commented Mar 8, 2022

Screenshot 2022-03-08 at 5 28 44 PM

I think I found the solution, here there is written 20 by default, seems I had less then 20 pieces to minted, I changed to 1 and it worked :)

why did you change it to 1 though? what is that line of code for?

@Sevenrex
Copy link

Sevenrex commented Mar 8, 2022

Well I did deploy it check out my profile. I just used chrome

On Tue, Mar 8, 2022, 6:37 AM Sevenrex @.> wrote: any solutions yet? — Reply to this email directly, view it on GitHub <#2 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWZ3PG55TP2C2PR4UZJIXS3U65CZPANCNFSM5LQKRCZQ . You are receiving this because you commented.Message ID: @.>

you didnt change anything?

@barjakuzu
Copy link

barjakuzu commented Mar 8, 2022

Screenshot 2022-03-08 at 5 28 44 PM I think I found the solution, here there is written 20 by default, seems I had less then 20 pieces to minted, I changed to 1 and it worked :)

why did you change it to 1 though? what is that line of code for?

this line of code is for initial mint, so for example if you leave it on 20 you will have 20 of the tokens on your initial account, since there was no 20 pieces to be minted there was an error.

@Sevenrex
Copy link

Sevenrex commented Mar 8, 2022

Screenshot 2022-03-08 at 5 28 44 PM I think I found the solution, here there is written 20 by default, seems I had less then 20 pieces to minted, I changed to 1 and it worked :)

why did you change it to 1 though? what is that line of code for?

this line of code is for initial mint, so for example if you leave it on 20 you will have 20 of the tokens on your initial account, since there was no 20 pieces to be minted there was an error.

Ohhh have you tried putting 0? did it work?> xd

@TheSpecialNoob
Copy link

TheSpecialNoob commented Mar 8, 2022 via email

@Sevenrex
Copy link

Sevenrex commented Mar 8, 2022

I remember I changed the 1

On Tue, Mar 8, 2022, 8:02 AM Sevenrex @.> wrote: Well I did deploy it check out my profile. I just used chrome … <#m_2070714871725015710_> On Tue, Mar 8, 2022, 6:37 AM Sevenrex @.> wrote: any solutions yet? — Reply to this email directly, view it on GitHub <#2 (comment) <#2 (comment)>>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWZ3PG55TP2C2PR4UZJIXS3U65CZPANCNFSM5LQKRCZQ https://github.com/notifications/unsubscribe-auth/AWZ3PG55TP2C2PR4UZJIXS3U65CZPANCNFSM5LQKRCZQ . You are receiving this because you commented.Message ID: @.> you didnt change anything? — Reply to this email directly, view it on GitHub <#2 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWZ3PG5XNZAUEQIP7Y22V73U65MZDANCNFSM5LQKRCZQ . You are receiving this because you commented.Message ID: @.**>

i removed that command line and it still worked, but the problem is the image is not appearing in opensea, but the properties are there. hmmm do the images appear to you?

@erikfuego
Copy link

Screenshot 2022-03-08 at 5 28 44 PM

I think I found the solution, here there is written 20 by default, seems I had less then 20 pieces to minted, I changed to 1 and it worked :)

Thank you so much!!!! After hours of googling this solved my issue. I had changed the maxMintAmount to 1 and that hardcoded value was giving me issues... You would think that code uses the global var lol

@rndlapps
Copy link

rndlapps commented Apr 2, 2022

I faced the same issue but none of the comments above helped me, but finally I found the solution. So apparently I was trying to mint more nfts than the set max mintamount that's why I was getting the error. By default you'll be minting 20 nfs when deploying the contract - I didn't know that. If you've set maxmintamount to a smaller value, you'll be getting the gas fee error.
Screenshot 2022-04-02 at 15 49 40

@CactusJacked
Copy link

I faced the same issue but none of the comments above helped me, but finally I found the solution. So apparently I was trying to mint more nfts than the set max mintamount that's why I was getting the error. By default you'll be minting 20 nfs when deploying the contract - I didn't know that. If you've set maxmintamount to a smaller value, you'll be getting the gas fee error. Screenshot 2022-04-02 at 15 49 40

This worked for me thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests