Add hex as a dependency to serai-client

This commit is contained in:
Luke Parker
2023-11-22 18:00:41 -05:00
parent 88a1726399
commit f58478ad87
2 changed files with 2 additions and 1 deletions

View File

@@ -19,6 +19,7 @@ thiserror = { version = "1", optional = true }
futures = "0.3" futures = "0.3"
hex = "0.4"
scale = { package = "parity-scale-codec", version = "3" } scale = { package = "parity-scale-codec", version = "3" }
scale-info = { version = "2", optional = true } scale-info = { version = "2", optional = true }

View File

@@ -204,7 +204,7 @@ impl Serai {
.0 .0
.rpc() .rpc()
.deref() .deref()
.request::<[u8; 32]>("author_submitExtrinsic", subxt::rpc::rpc_params![tx]) .request::<String>("author_submitExtrinsic", subxt::rpc::rpc_params![hex::encode(tx)])
.await .await
// Drop the hash, which is the hash of the raw extrinsic, as extrinsics are allowed to share // 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 // hashes and this hash is accordingly useless/unsafe