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

Replace contracts RPC calls with state_call #683

Closed
ascjones opened this issue Aug 10, 2022 · 0 comments · Fixed by #701
Closed

Replace contracts RPC calls with state_call #683

ascjones opened this issue Aug 10, 2022 · 0 comments · Fixed by #701

Comments

@ascjones
Copy link
Collaborator

The contract specific RPC endpoints are planned to be removed. These should be replaced by calling the state_call RPC with SCALE encoded calls for the various contracts extrinsics,

@athei

It is slightly different because before you had the args seperate and json encoded. For Rust it is even easier this way (just encode all args as one type).
You can use polkadot.js app: Developer -> RuntimeCalls to see how it works

Rel polkadot-js/api#4930, paritytech/substrate-connect#1096

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 a pull request may close this issue.

1 participant