near / corgis

simple solution for corgi NFT
22 stars 16 forks source link

Unable to create Corgis #11

Open mikedotexe opened 4 years ago

mikedotexe commented 4 years ago

Someone on Discord noticed they were unable to create Corgis. I had the same behavior. I believe they somehow might have determined that it's a gas issue, but I cannot confirm that. I have tried on a couple browsers, logged out of a NEAR account and back in. Console doesn't seem to show helpful information for me.

icerove commented 4 years ago

I will touch this

mikedotexe commented 4 years ago

Sounds like updating near-api-js will help, but user is still seeing errors

myklemykle commented 4 years ago

Hi, I reported this on Discord, I have a bit more info now.

In src/hooks/contract.js , the corgi sample code sets the prepaid gas limit for calls (the BOATLOAD_OF_GAS const) to 10^16, which exceeds what the API is willing to take (I think it's 3 * 10^15?), giving GasLimitExceeded error.

At the moment, on the testnet, createCorgi seems to succeed if I reduce BOATLOAD_OF_GAS to 10^14. (However, 10^12 is not enough, and gives GasExceeded.)

It's a one-character fix. Would you like a pull req?