Skip to content

Commit

Permalink
fix: broken eip155 logic in aws signer (#2300)
Browse files Browse the repository at this point in the history
  • Loading branch information
xJonathanLEI committed Mar 24, 2023
1 parent 16f9fab commit 36dac58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ethers-signers/src/aws/utils.rs
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

0 comments on commit 36dac58

Please sign in to comment.