Skip to content

Commit

Permalink
Fmt rs
Browse files Browse the repository at this point in the history
  • Loading branch information
sieniven committed Jan 5, 2024
1 parent 18f0d1a commit 03bd667
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/ain-grpc/src/rpc/eth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1137,7 +1137,8 @@ impl MetachainRPCServer for MetachainRPCModule {

fn sign(address: H160, message: TransactionMessage) -> RpcResult<TransactionV2> {
debug!(target: "rpc", "sign address {:#x}", address);
let priv_key = get_eth_priv_key(address.to_fixed_bytes()).map_err(|_| to_custom_err("Invalid private key"))?;
let priv_key = get_eth_priv_key(address.to_fixed_bytes())
.map_err(|_| to_custom_err("Invalid private key"))?;
let secret_key = SecretKey::parse(&priv_key)
.map_err(|e| to_custom_err(format!("Error parsing SecretKey {e}")))?;

Expand Down

0 comments on commit 03bd667

Please sign in to comment.