From fa76edce1606c14bd3bba08bb0cf677dff01d081 Mon Sep 17 00:00:00 2001 From: Jochem Brouwer Date: Thu, 31 Oct 2024 22:47:39 +0100 Subject: [PATCH] tx: fix 7702 tests --- packages/tx/test/eip7702.spec.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/tx/test/eip7702.spec.ts b/packages/tx/test/eip7702.spec.ts index da31c6b6b7..85e3abfeb5 100644 --- a/packages/tx/test/eip7702.spec.ts +++ b/packages/tx/test/eip7702.spec.ts @@ -3,7 +3,6 @@ import { BIGINT_1, MAX_INTEGER, MAX_UINT64, - SECP256K1_ORDER_DIV_2, bigIntToHex, createAddressFromPrivateKey, createZeroAddress, @@ -86,9 +85,9 @@ describe('[EOACode7702Transaction]', () => { { nonce: bigIntToHex(MAX_UINT64 + BIGINT_1) }, 'Invalid EIP-7702 transaction: nonce exceeds 2^64 - 1', ], - [{ yParity: '0x2' }, 'yParity should be 0 or 1'], + [{ yParity: '0x0100' }, 'yParity should be < 2^8'], [{ r: bigIntToHex(MAX_INTEGER + BIGINT_1) }, 'r exceeds 2^256 - 1'], - [{ s: bigIntToHex(SECP256K1_ORDER_DIV_2 + BIGINT_1) }, 's > secp256k1n/2'], + [{ s: bigIntToHex(MAX_INTEGER + BIGINT_1) }, 's exceeds 2^256 - 1'], [{ yParity: '0x0002' }, 'yParity cannot have leading zeros'], [{ r: '0x0001' }, 'r cannot have leading zeros'], [{ s: '0x0001' }, 's cannot have leading zeros'],