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

Hard-Code high enough gas limit to make wallet happy #7

Open
Lsquared13 opened this issue Mar 1, 2019 · 1 comment
Open

Hard-Code high enough gas limit to make wallet happy #7

Lsquared13 opened this issue Mar 1, 2019 · 1 comment

Comments

@Lsquared13
Copy link

No description provided.

@andreweximchain
Copy link

Currently, when the wallet asks the tx-executor to calculate a gas limit, it returns a response that will disconnect the transaction executor

As a demo
curl -XPOST -H "Content-Type: application/json" -d'{"method":"eth_estimateGas","params":[{"value":"0xde0b6b3a7640000","data":"0x2eca7b9b0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001","to":"0x000000000000000000000000000000000000002a","from":"0x296000987df91481aa5652e421ae6f77c3f0bc7e"}],"id":"1b9eaaa58095aed12ecc4a88f3f53939","jsonrpc":"2.0"}' https://gamma-tx-executor-us-east.eximchain-dev.com

will return

{"jsonrpc":"2.0","error":{"code":-32000,"message":"gas required exceeds allowance or always failing transaction"},"id":null}

And this is the same request the wallet sends out. So, the tx-executor will need to be modified to properly send out a valid response rather than an error response. More research will be required to figure out why the node is complaining about being unable to just send the required gas amount.

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