fix: broken eip155 logic in aws signer (#2300)

This commit is contained in:
Jonathan LEI 2023-03-25 02:00:01 +08:00 committed by GitHub
parent 16f9fab75c
commit 36dac5864c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 /// Modify the v value of a signature to conform to eip155
pub(super) fn apply_eip155(sig: &mut EthSig, chain_id: u64) { 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; sig.v = v;
} }