Skip to content

Commit

Permalink
add more comments
Browse files Browse the repository at this point in the history
  • Loading branch information
clangenb committed Oct 26, 2024
1 parent 9c36e74 commit 8d6ce33
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sidechain/rpc-handler/src/direct_top_pool_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ pub fn add_top_pool_direct_rpc_methods<R, TCS, G, OCallApi>(
])
.unwrap_or_else(|e| error!("failed to update prometheus metric: {:?}", e));
let json_value = match author_submit_extrinsic_inner(local_author.clone(), params) {
// Only return hash to support JSON RPC 2.0.
// Other methods will follow this pattern when
// we tackle #1624.
Ok(hash_value) => hash_value.to_hex(),
Err(error) => compute_hex_encoded_return_error(error.as_str()),
};
Expand Down

0 comments on commit 8d6ce33

Please sign in to comment.