Skip to content

Commit

Permalink
fix fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
leejw51crypto committed Nov 28, 2023
1 parent e2b94e9 commit 7f72b53
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion common/src/transaction/ethereum/signer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ impl EthSigner {
pub fn eth_sign_insecure(&self, hash: &str) -> Result<String, EthError> {
let hash = hash.strip_prefix("0x").unwrap_or(hash);
let hash = H256::from_str(hash).map_err(|_| EthError::HexConversion)?;
let signature = self.wallet.sign_hash(hash).map_err(|_| EthError::SignatureError)?.to_string();
let signature = self
.wallet
.sign_hash(hash)
.map_err(|_| EthError::SignatureError)?
.to_string();
Ok(format!("0x{signature}"))
}

Expand Down

0 comments on commit 7f72b53

Please sign in to comment.