casperholders / casperholdersfront

Vue.JS Webapp to interact with Casper Network
https://casperholders.io
Apache License 2.0
6 stars 6 forks source link

simulate deploy does not use provided payment amount #48

Open ryo-casper opened 4 months ago

ryo-casper commented 4 months ago

Describe the bug Current simulate deploy does not use provided payment amount.

Current Uses wallet whole balance as payment amount which causes below error

{
    "jsonrpc": "2.0",
    "id": "0",
    "error": {
        "code": -32008,
        "message": "Invalid Deploy",
        "data": "invalid deploy: payment amount of 39567978397308 exceeds the block gas limit of 4000000000000"
    }
}

Expected behavior Provided amount should be used as payment amount for speculative execution. image

ryo-casper commented 4 months ago

@KillianH FYI

KillianH commented 4 months ago

Will check this week thx

KillianH commented 4 months ago

@ryo-casper by default the simulate fee action use your full balance. To avoid getting out of gas error early and having to change the payment amount to find the right value. Seems like your smart contracts is too costly for the chain ? If you can provide the smart contract with the associated parameters would be happy to try on my end.

KillianH commented 4 months ago

Oh I see the error now since your balance is higher than the max block gas size you can't deploy ... Will put a max on it.

KillianH commented 4 months ago

Should be fixed on mainnet/testnet @ryo-casper let me know if you still have the issue :)

KillianH commented 4 months ago

You might need to do a hard refresh to retrieve the latest version on the website tho' :) I have a service worker that has some cache and might not display the latest version directly