From 25834c7f748ee65fb8fbeeef10aeb387f4011965 Mon Sep 17 00:00:00 2001 From: Georgios Konstantopoulos Date: Mon, 2 May 2022 22:35:41 +0300 Subject: [PATCH] fix: pass tx with chain by ref --- ethers-signers/src/ledger/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ethers-signers/src/ledger/mod.rs b/ethers-signers/src/ledger/mod.rs index d233e898..817ab1ec 100644 --- a/ethers-signers/src/ledger/mod.rs +++ b/ethers-signers/src/ledger/mod.rs @@ -30,7 +30,7 @@ impl Signer for LedgerEthereum { // 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); } - self.sign_tx(tx_with_chain).await + self.sign_tx(&tx_with_chain).await } /// Signs a EIP712 derived struct