-
Notifications
You must be signed in to change notification settings - Fork 338
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
Wrong capitalization in parameter when doing RPC call #5529
Comments
Where is the Rust definition for these enums? The reason for asking, as per the substrate standard, all enums are encoded (when they have values) in camelCase via a serde attribute, see for instance or (picking the first enums via JSONRPC that my search picked up) TL:DR It seems you are missing the PS: You are actually better off not doing RPCs and doing all via |
It appears that the enums indeed don't have that attribute (here for example: https://github.com/centrifuge/centrifuge-chain/blob/0f32f7b4967c73cc38914c86c2f742f28f3da789/libs/types/src/tokens.rs#L27) |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue if you think you have a related problem or query. |
I'm trying to do an RPC call, but it errors because there's a change in capitalization of one of the parameters when the call gets submitted.
The types:
The call
The rpc call that gets made
The error
Tranche
unexpectedly changes totranche
.A sandbox reproducing the error: https://codesandbox.io/s/polkadotjs-rpc-xjjdhl?file=/src/index.ts
I would expect the capitalization to remain unchanged.
Version: 10.0.1
Environment:
Language:
The text was updated successfully, but these errors were encountered: