fix: broken eip155 logic in aws signer (#2300)
This commit is contained in:
parent
16f9fab75c
commit
36dac5864c
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue