Skip to content

Commit

Permalink
fix(common-scripts): parity check failed
Browse files Browse the repository at this point in the history
  • Loading branch information
homura committed Jun 24, 2024
1 parent 486fae6 commit 58905f9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export async function signMessage(
const [tweakedV] = signature.slice(-1);
// https://eips.ethereum.org/EIPS/eip-155
const PARITY_FLAG = 27;
const v = tweakedV > PARITY_FLAG ? tweakedV - PARITY_FLAG : tweakedV;
const v = tweakedV >= PARITY_FLAG ? tweakedV - PARITY_FLAG : tweakedV;
signature.set([v], signature.length - 1);
return bytes.hexify(signature);
}

0 comments on commit 58905f9

Please sign in to comment.