Skip to content

Commit

Permalink
update chainid to uint256
Browse files Browse the repository at this point in the history
  • Loading branch information
jochem-brouwer committed Dec 22, 2024
1 parent 98806ff commit 5079664
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/tx/src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,8 @@ export class AuthorizationLists {
if (address.length !== 20) {
throw new Error('Invalid EIP-7702 transaction: address length should be 20 bytes')
}
if (bytesToBigInt(chainId) > MAX_UINT64) {
throw new Error('Invalid EIP-7702 transaction: chainId exceeds 2^64 - 1')
if (bytesToBigInt(chainId) > MAX_INTEGER) {
throw new Error('Invalid EIP-7702 transaction: chainId exceeds 2^256 - 1')
}
if (bytesToBigInt(nonce) > MAX_UINT64) {
throw new Error('Invalid EIP-7702 transaction: nonce exceeds 2^64 - 1')
Expand Down

0 comments on commit 5079664

Please sign in to comment.