Skip to content

Commit

Permalink
fix author_submit_extrinsic_inner
Browse files Browse the repository at this point in the history
  • Loading branch information
outofxxx committed Jan 11, 2024
1 parent e510a5b commit 8a52746
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tee-worker/sidechain/rpc-handler/src/direct_top_pool_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,10 @@ fn author_submit_extrinsic_inner<R: AuthorApi<Hash, Hash> + Send + Sync + 'stati
debug!("Author submit and watch trusted operation..");

let hex_encoded_params = params.parse::<Vec<String>>().map_err(|e| format!("{:?}", e))?;
let param = &hex_encoded_params.get(0).ok_or("Could not get first param")?;

let request =
Request::from_hex(&hex_encoded_params[0].clone()).map_err(|e| format!("{:?}", e))?;
Request::from_hex(param).map_err(|e| format!("{:?}", e))?;

let shard: ShardIdentifier = request.shard;
let encrypted_trusted_call: Vec<u8> = request.cyphertext;
Expand Down

0 comments on commit 8a52746

Please sign in to comment.