Wonderland-Money / wonderland-frontend

MIT License
228 stars 296 forks source link

Internal JSON-RPC error (execution reverted) #58

Open Justandy777 opened 2 years ago

Justandy777 commented 2 years ago

Can't stake...

This is my first time trying to stake TIME and I have connected my wallet. When I click Max it shows my TIME balance but when I client Stake, I get the following error:

{"code":-32603,"message":"Internal JSON-RPC error.","data":{"code":-32000,"message":"execution reverted"},"stack":"{\n \"code\": -32603,\n \"message\": \"Internal JSON-RPC error.\",\n \"data\": {\n \"code\": -32000,\n \"message\": \"execution reverted\"\n },\n \"stack\": \"Error: Internal JSON-RPC error.\n at new i (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/common-0.js:18:148782)\n at s (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/common-0.js:18:146325)\n at Object.internal (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/common-0.js:18:146935)\n at u (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/background-1.js:1:95847)\n at chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/background-1.js:1:96879\n at async chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/background-1.js:1:11286\"\n}\n at new i (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/common-0.js:18:148782)\n at s (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/common-0.js:18:146325)\n at Object.internal (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/common-0.js:18:146935)\n at u (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/background-1.js:1:95847)\n at chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/background-1.js:1:96879\n at async chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/background-1.js:1:11286"}

I saw another thread on this but no solution.

Please advise. Thanks!

giuliopie commented 2 years ago

Hello @Justandy777 That's happening because probably you don't have enough AVAX to pay the stake fees.

Justandy777 commented 2 years ago

Yes that was it, thanks. Appreciate the help!

On Mon, Dec 20, 2021 at 5:43 AM Giulio Piepoli @.***> wrote:

Hello @Justandy777 https://github.com/Justandy777 That's happening because probably you don't have enough AVAX to pay the stake fees.

— Reply to this email directly, view it on GitHub https://github.com/Wonderland-Money/wonderland-frontend/issues/58#issuecomment-997806742, or unsubscribe https://github.com/notifications/unsubscribe-auth/AW7PUDYL4IRE3X5A3WOGOQ3UR4CEDANCNFSM5KMVIG3A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>

0xRowdy commented 2 years ago

Yes that was it, thanks. Appreciate the help! On Mon, Dec 20, 2021 at 5:43 AM Giulio Piepoli @.> wrote: Hello @Justandy777 https://github.com/Justandy777 That's happening because probably you don't have enough AVAX to pay the stake fees. — Reply to this email directly, view it on GitHub <#58 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AW7PUDYL4IRE3X5A3WOGOQ3UR4CEDANCNFSM5KMVIG3A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you were mentioned.Message ID: @.>

Hey Justandy777,

Glad that you were able to resolve this issue. We'd like to go ahead and close this issue if it has been resolved.

nadvolod commented 2 years ago

Had the same issue. Fixed by adding more AVAX for the gas fees. I think instead of closing this issue, it would be nice to return a better error message from the UI.