-
Notifications
You must be signed in to change notification settings - Fork 92
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
Possible problem in translating call() params into camelCase requirement #141
Comments
Previously, I had been using the |
I have the same problem. |
this reason is like Substrate-based chain or moonbase chain rpc only accepts different parameters: |
That's interesting. I only tested against local Geth nodes and remote Infura endpoints which definitely accept the snake_case_parameters. However, I'm more than happy to accept such a change. Maybe we can add a Moonbeam compatibility feature or rewrite all parameters to camel case. (Does Geth accept camel case?) |
Having camel case compatibility and also adding moonbeam, moonriver, (etc) chain IDs. I'd be happy to onboard new ecosystems! |
@q9f OK. |
Yes, a default camel case would work for me! Sorry for the late response! :) |
OK, I'm working on it here: a-moreira#1 |
hey @q9f I opened the PR to check the CI workflow, since I'm getting a weird error on tests that I couldn't debug. Can please you approve the workflows? :-) I still need to fix some comments and other details. |
Done :) |
hey @q9f, I'm sorry to bother, but is there any chance you could take a quick look at the PR? For some reason only some of the tests break with a insufficient gas error, I may be getting crazy but could not pin it. The errors I get are the same as the CI shows. I used edit: add more context |
I started debugging a bit, something is fishy. I have not too much time to dive deeply into it but I would suggest you starting with the test in client spec on line 128.
And then try to find out why it needs funds for a call and why the address is 0x0
|
Hey @q9f I was able to fix the problems. I created another branch that delivers the same result, but simpler in any case, I think we should hold this for a moment, I want to do some more tests with a Moonbeam node and other Frontier-based chains |
Looks good to me, can you update the branches to the latest head on main? That should make the entire CI green now. |
version:
0.5.6
I haven't been able to send a call transaction to a custom Substrate-based chain with EVM compatibility.
I get
IOErrors
related to the name of the tx params.Example:
Investigating further, I noticed that the JSON fields in the payload look like this:
And the response is:
I was able to make it work by adding a
byebug
just before sending the request and manually renaming the JSON fields tocamelCase
, and removingchain_id
, adding transactiontype
:then I can get the correct response:
The text was updated successfully, but these errors were encountered: