substrate-contracts-node
substrate-contracts-node copied to clipboard
Getting Rpc error when I try compiling the node
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>`
It's probably because substrate has been updated to jsonrpsee 0.14.
You could try cargo build --locked or upgrade jsonrpsee