Skip to content

Commit e724bf1

Browse files
committed
Fix validation
1 parent e4ba4fb commit e724bf1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/transaction-controller/src/utils/validation.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -535,9 +535,9 @@ function validateAuthorization(authorization: Authorization) {
535535

536536
const { yParity } = authorization;
537537

538-
if (yParity && !['0x', '0x1'].includes(yParity)) {
538+
if (yParity && !['0x0', '0x1'].includes(yParity)) {
539539
throw rpcErrors.invalidParams(
540-
`Invalid transaction params: yParity must be '0x' or '0x1'. got: ${yParity}`,
540+
`Invalid transaction params: yParity must be '0x0' or '0x1'. got: ${yParity}`,
541541
);
542542
}
543543
}

0 commit comments

Comments
 (0)