chore(clippy): make clippy happy (#1595)
This commit is contained in:
parent
2c33acb3ad
commit
608fd841c5
|
@ -97,7 +97,7 @@ impl<D: Sync + Send + DigestSigner<Sha256Proxy, RecoverableSignature>> Signer fo
|
||||||
|
|
||||||
async fn sign_transaction(&self, tx: &TypedTransaction) -> Result<Signature, Self::Error> {
|
async fn sign_transaction(&self, tx: &TypedTransaction) -> Result<Signature, Self::Error> {
|
||||||
let mut tx_with_chain = tx.clone();
|
let mut tx_with_chain = tx.clone();
|
||||||
if tx_with_chain.chain_id() == None {
|
if tx_with_chain.chain_id().is_none() {
|
||||||
// in the case we don't have a chain_id, let's use the signer chain id instead
|
// in the case we don't have a chain_id, let's use the signer chain id instead
|
||||||
tx_with_chain.set_chain_id(self.chain_id);
|
tx_with_chain.set_chain_id(self.chain_id);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue