From f58478ad8715c6463d53fc3cc2cac345b50d0c49 Mon Sep 17 00:00:00 2001 From: Luke Parker Date: Wed, 22 Nov 2023 18:00:41 -0500 Subject: [PATCH] Add hex as a dependency to serai-client --- substrate/client/Cargo.toml | 1 + substrate/client/src/serai/mod.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/substrate/client/Cargo.toml b/substrate/client/Cargo.toml index 626d4a65..d47be773 100644 --- a/substrate/client/Cargo.toml +++ b/substrate/client/Cargo.toml @@ -19,6 +19,7 @@ thiserror = { version = "1", optional = true } futures = "0.3" +hex = "0.4" scale = { package = "parity-scale-codec", version = "3" } scale-info = { version = "2", optional = true } diff --git a/substrate/client/src/serai/mod.rs b/substrate/client/src/serai/mod.rs index 4702f2e4..a96d528c 100644 --- a/substrate/client/src/serai/mod.rs +++ b/substrate/client/src/serai/mod.rs @@ -204,7 +204,7 @@ impl Serai { .0 .rpc() .deref() - .request::<[u8; 32]>("author_submitExtrinsic", subxt::rpc::rpc_params![tx]) + .request::("author_submitExtrinsic", subxt::rpc::rpc_params![hex::encode(tx)]) .await // Drop the hash, which is the hash of the raw extrinsic, as extrinsics are allowed to share // hashes and this hash is accordingly useless/unsafe