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

Remove Custom RPC methods and Use Runtime API methods Instead (Blocked by Polkadot.js bug) #277

Open
wants to merge 4 commits into
base: devel
Choose a base branch
from

Conversation

aang114
Copy link
Contributor

@aang114 aang114 commented Feb 23, 2023

Substrate has stopped using custom RPC methods for most of its pallets and instead they allow runtime APIs to be called directly using the RPC state_call (https://polkadot.js.org/docs/substrate/rpc/#callmethod-text-data-bytes-at-blockhash-bytes).

Here's an example of Substrate removing the custom RPC methods for pallet-dex: paritytech/substrate#13050

Therefore, in this PR I have removed the custom RPC methods. However, this PR cannot be merged since the output of the runtime API methods is being incorrectly decoded by polkadot.js. (Hence the tests in rpc/test/rpc-tests.js fail). This is a known problem with polkadot.js since October 2022: polkadot-js/api#5298

Therefore, this PR is blocked until polkadot.js fixes polkadot-js/api#5298

@aang114 aang114 changed the title Remove Custom RPC methods and Use Runtime API methods Instead Remove Custom RPC methods and Use Runtime API methods Instead (Blocked by Polkadot.js bug) Feb 23, 2023
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

Successfully merging this pull request may close these issues.

[Bug] Runtime API Call Decoding incorrect with Custom Types
3 participants