diff --git a/examples/Cargo.toml b/examples/Cargo.toml index c83b4ac568..beda15fc5a 100644 --- a/examples/Cargo.toml +++ b/examples/Cargo.toml @@ -14,7 +14,7 @@ description = "Subxt example usage" [dev-dependencies] subxt = { path = "../subxt" } tokio = { version = "1.8", features = ["rt-multi-thread", "macros", "time"] } -sp-keyring = "6.0.0" +sp-keyring = "7.0.0" futures = "0.3.13" codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive", "full", "bit-vec"] } hex = "0.4.3" diff --git a/metadata/Cargo.toml b/metadata/Cargo.toml index 122ec379d5..a9a39ea213 100644 --- a/metadata/Cargo.toml +++ b/metadata/Cargo.toml @@ -15,7 +15,7 @@ description = "Command line utilities for checking metadata compatibility betwee codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive", "full"] } frame-metadata = "15.0.0" scale-info = "2.0.0" -sp-core = { version = "6.0.0" } +sp-core = "7.0.0" [dev-dependencies] bitvec = { version = "1.0.0", default-features = false, features = ["alloc"] } diff --git a/subxt/Cargo.toml b/subxt/Cargo.toml index 1202e41b35..ffdd6facbe 100644 --- a/subxt/Cargo.toml +++ b/subxt/Cargo.toml @@ -43,8 +43,8 @@ parking_lot = "0.12.0" subxt-macro = { version = "0.24.0", path = "../macro" } subxt-metadata = { version = "0.24.0", path = "../metadata" } -sp-core = { version = "6.0.0", default-features = false } -sp-runtime = "6.0.0" +sp-core = { version = "7.0.0", default-features = false } +sp-runtime = "7.0.0" frame-metadata = "15.0.0" derivative = "2.2.0" diff --git a/subxt/src/error.rs b/subxt/src/error.rs index 0d91adbab5..dd87277646 100644 --- a/subxt/src/error.rs +++ b/subxt/src/error.rs @@ -112,7 +112,7 @@ pub enum RpcError { // Dev note: We need the error to be safely sent between threads // for `subscribe_to_block_headers_filling_in_gaps` and friends. /// Error related to the RPC client. - ClientError(Box), + ClientError(Box), /// The RPC subscription dropped. SubscriptionDropped, } diff --git a/testing/integration-tests/Cargo.toml b/testing/integration-tests/Cargo.toml index 2c398845a5..1e0c2e0c53 100644 --- a/testing/integration-tests/Cargo.toml +++ b/testing/integration-tests/Cargo.toml @@ -22,9 +22,9 @@ futures = "0.3.13" hex = "0.4.3" regex = "1.5.0" scale-info = { version = "2.0.0", features = ["bit-vec"] } -sp-core = { version = "6.0.0", default-features = false } -sp-keyring = "6.0.0" -sp-runtime = "6.0.0" +sp-core = { version = "7.0.0", default-features = false } +sp-keyring = "7.0.0" +sp-runtime = "7.0.0" syn = "1.0.0" subxt = { version = "0.24.0", path = "../../subxt" } subxt-codegen = { version = "0.24.0", path = "../../codegen" } diff --git a/testing/integration-tests/src/client/mod.rs b/testing/integration-tests/src/client/mod.rs index 92cdbf2a5c..77a5a5f5e2 100644 --- a/testing/integration-tests/src/client/mod.rs +++ b/testing/integration-tests/src/client/mod.rs @@ -203,7 +203,7 @@ async fn dry_run_fails() { if let Err(sp_runtime::DispatchError::Module(module_error)) = dry_run_res { assert_eq!(module_error.index, 6); - assert_eq!(module_error.error, 2); + assert_eq!(module_error.error, [2, 0, 0, 0]); } else { panic!("expected a module error when dryrunning"); } diff --git a/testing/test-runtime/Cargo.toml b/testing/test-runtime/Cargo.toml index 51956f2452..083b7db003 100644 --- a/testing/test-runtime/Cargo.toml +++ b/testing/test-runtime/Cargo.toml @@ -5,12 +5,12 @@ edition = "2021" [dependencies] subxt = { path = "../../subxt" } -sp-runtime = "6.0.0" +sp-runtime = "7.0.0" codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive", "full", "bit-vec"] } [build-dependencies] subxt = { path = "../../subxt" } -sp-core = "6.0.0" +sp-core = { version = "7.0.0", default-features = false } tokio = { version = "1.8", features = ["macros", "rt-multi-thread"] } which = "4.2.2" jsonrpsee = { version = "0.16.0", features = ["async-client", "client-ws-transport"] }