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

Im getting this error > Unable to rebake. Error: Error: call revert exception; V #4

Closed
lucholabs opened this issue Apr 20, 2022 · 15 comments

Comments

@lucholabs
Copy link

lucholabs commented Apr 20, 2022

Hello and thanks for the code, im getting this error.. I don't know what is missing.

`Current time: 2022-04-20T18:29:26.052Z

Rebake count: 0
Rebakes away from eat: 24
BB Contract Balance: 34897.768 BNB
Your Beans (Pre bake): 0 BEANS

Unable to rebake. Error: Error: call revert exception; VM Exception while processing transaction: reverted with panic code 18 [ See: https://links.ethers.org/v5-errors-CALL_EXCEPTION ]
} `

@lucholabs lucholabs changed the title Im getting this error Im getting this error > Unable to rebake. Error: Error: call revert exception; V Apr 20, 2022
@usmankhan95
Copy link
Owner

This might be due to not enough bnb for gas fees in your wallet. Can you please check if you have enough.

@usmankhan95
Copy link
Owner

Have also noticed it hasn't picked up any beans amount there. Did you add your private key to env file?

@lucholabs
Copy link
Author

lucholabs commented Apr 20, 2022 via email

@usmankhan95
Copy link
Owner

usmankhan95 commented Apr 20, 2022

Nope it's only the private key as is. You'll know it worked as it will say in the logs that you've added wallet: {your wallet address}

EDIT
MetaMask/metamask-extension#687
They fixed this a while ago so you don't need to add the 0x yourself

@usmankhan95
Copy link
Owner

Also please double check to see if your original message above doesn't contain any sensitive data.

@lucholabs
Copy link
Author

Also please double check to see if your original message above doesn't contain any sensitive data.

Just edit for precaution but no private key was there

@lucholabs lucholabs reopened this Apr 20, 2022
@lucholabs
Copy link
Author

Thanks for your help !! I will change to a polygon miner

@usmankhan95
Copy link
Owner

Did you not get it running?

@lucholabs
Copy link
Author

I let you know how is going tomorrow! 😴

@lucholabs
Copy link
Author

lucholabs commented Apr 21, 2022

@usmankhan95 Can't sleep anyway.. I could make it run! but I think I have a problem with the gas.. is not enough. (I migrate to polygon)

I made this change but no luck.. transaction get lost on the mempool

const tx = await signedContract.hatchEggs(wallet.address,{gasPrice: 80000000000, gasLimit: 300000});
   await setLastBakeTime(currentTime);

@lucholabs
Copy link
Author

lucholabs commented Apr 21, 2022

@usmankhan95 also I want to ask you about Heroku.. seems that the free plan has only 550 working hours on dynos.. maybe we can find an alternative free.

Edit: just realize that if you put a card on Heroku they give u 1100 hours.. enough for the month...

@usmankhan95
Copy link
Owner

The gas fees on bsc are usually no more than 0.10 to 0.15 usd

It should work fine as long as you leave a few dollars worth of bnb in your wallet.

Yes for heroku if you add your card (you don't need to buy anything) they will give you enough hours to constantly run the bot for a full month (and more). You'll need to put your card on anyway in order to add the redis plugin. Still at the end it won't cost you anything.

@lucholabs
Copy link
Author

lucholabs commented Apr 21, 2022

@usmankhan95 this is the last.. I got a problem with Heroku. im getting crazy with this..

Starting process with command node autoRebake.js

2022-04-21T11:05:57.139145+00:00 app[worker.1]: Error: Cannot find module '/app/autoRebake.js'

@lucholabs
Copy link
Author

@usmankhan95
Copy link
Owner

Okay, this was my mistake. I recently cleaned up the folder structure and placed the autoRebake.js inside src folder. I then forgot to update the Procfile. I'll update it now and then it should work fine. Apologies.

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

2 participants