Skip to content

Commit

Permalink
Implement EIP-4803
Browse files Browse the repository at this point in the history
  • Loading branch information
jochem-brouwer committed Dec 22, 2024
1 parent 3f0f3b5 commit 1c09746
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/tx/src/features/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ export function sharedConstructor(
// Validate value/r/s
valueBoundaryCheck({ value: tx.value, r: tx.r, s: tx.s })

// geth limits gasLimit to 2^64-1
valueBoundaryCheck({ gasLimit: tx.gasLimit }, 64)
// https://eips.ethereum.org/EIPS/eip-4803
valueBoundaryCheck({ gasLimit: tx.gasLimit }, 63, true)

// EIP-2681 limits nonce to 2^64-1 (cannot equal 2^64-1)
valueBoundaryCheck({ nonce: tx.nonce }, 64, true)
Expand Down

0 comments on commit 1c09746

Please sign in to comment.