fix: broken eip155 logic in aws signer

This commit is contained in:
Jonathan LEI 2023-03-24 17:53:13 +00:00
parent 16f9fab75c
commit 53bd71e578
No known key found for this signature in database
GPG Key ID: 700C4B553E9FE35F
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}