Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

ethers-signers/aws: sighash on the inner/updated tx object #1977

Merged
merged 1 commit into from
Jan 3, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ethers-signers/src/aws/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ impl super::Signer for AwsSigner {
let chain_id = tx_with_chain.chain_id().map(|id| id.as_u64()).unwrap_or(self.chain_id);
tx_with_chain.set_chain_id(chain_id);

let sighash = tx.sighash();
let sighash = tx_with_chain.sighash();
self.sign_digest_with_eip155(sighash, chain_id).await
}

Expand Down