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

Getting Rpc error when I try compiling the node #121

Closed
dharjeezy opened this issue Jun 17, 2022 · 1 comment · Fixed by #152
Closed

Getting Rpc error when I try compiling the node #121

dharjeezy opened this issue Jun 17, 2022 · 1 comment · Fixed by #152

Comments

@dharjeezy
Copy link

When i try compiling the node, I get this error. Any idea how to go about this?

node/src/service.rs:180:16
   |
180 |         rpc_builder: rpc_extensions_builder,
   |                      ^^^^^^^^^^^^^^^^^^^^^^ expected struct `jsonrpsee_core::server::rpc_module::RpcModule`, found struct `RpcModule`
   |
   = note: expected enum `Result<jsonrpsee_core::server::rpc_module::RpcModule<_>, sc_service::Error>`
              found enum `Result<RpcModule<()>, _>`
   = note: perhaps two different versions of crate `jsonrpsee_core` are being used?
   = note: required for the cast to the object type `dyn Fn(DenyUnsafe, Arc<(dyn SpawnNamed + 'static)>) -> Result<jsonrpsee_core::server::rpc_module::RpcModule<_>, sc_service::Error>`
@niklasad1
Copy link
Member

It's probably because substrate has been updated to jsonrpsee 0.14.

You could try cargo build --locked or upgrade jsonrpsee

@athei athei linked a pull request Oct 9, 2022 that will close this issue
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.

2 participants