Skip to content

Commit

Permalink
fix: expected_hash encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
dandanlen committed May 11, 2022
1 parent 47b9c2f commit 762810b
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions engine/src/state_chain/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -568,13 +568,11 @@ impl<RpcClient: StateChainRpcApi> StateChainClient<RpcClient> {
where
Call: Into<state_chain_runtime::Call> + 'static + std::fmt::Debug + Clone + Send,
{
let runtime_call = call.clone().into();
let expected_hash = BlakeTwo256::hash_of(&runtime_call);
let extrinsic = state_chain_runtime::UncheckedExtrinsic::new_unsigned(call.clone().into());
let expected_hash = BlakeTwo256::hash_of(&extrinsic);
match self
.state_chain_rpc_client
.submit_extrinsic_rpc(state_chain_runtime::UncheckedExtrinsic::new_unsigned(
runtime_call,
))
.submit_extrinsic_rpc(extrinsic)
.await
{
Ok(tx_hash) => {
Expand Down

0 comments on commit 762810b

Please sign in to comment.