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

simulate deploy does not use provided payment amount #48

Open
ryo-casper opened this issue Jun 18, 2024 · 6 comments
Open

simulate deploy does not use provided payment amount #48

ryo-casper opened this issue Jun 18, 2024 · 6 comments

Comments

@ryo-casper
Copy link

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
Copy link
Author

@KillianH FYI

@KillianH
Copy link
Collaborator

Will check this week thx

@KillianH
Copy link
Collaborator

@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
Copy link
Collaborator

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
Copy link
Collaborator

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

@KillianH
Copy link
Collaborator

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

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