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

fix: broken eip155 logic in aws signer #2300

Merged
merged 1 commit into from
Mar 24, 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/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ pub(super) fn sig_from_digest_bytes_trial_recovery(

/// Modify the v value of a signature to conform to eip155
pub(super) fn apply_eip155(sig: &mut EthSig, chain_id: u64) {
let v = (chain_id * 2 + 35) + ((sig.v - 1) % 2);
let v = (chain_id * 2 + 35) + sig.v;
sig.v = v;
}

Expand Down