From 7f72b53b550cc01e9560947cc8b1d91784ee813d Mon Sep 17 00:00:00 2001 From: jongwhan Date: Tue, 28 Nov 2023 21:21:37 +0900 Subject: [PATCH] fix fmt --- common/src/transaction/ethereum/signer.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/common/src/transaction/ethereum/signer.rs b/common/src/transaction/ethereum/signer.rs index 4130ffc6..68a288e9 100644 --- a/common/src/transaction/ethereum/signer.rs +++ b/common/src/transaction/ethereum/signer.rs @@ -34,7 +34,11 @@ impl EthSigner { pub fn eth_sign_insecure(&self, hash: &str) -> Result { 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}")) }