Skip to content

feat(dora): calldata byte count (EIP-7976) + EIP-7954 initcode size badge#756

Open
qu0b wants to merge 2 commits into
glamsterdam-devnet-6from
qu0b/dora/glamsterdam-devnet-6-calldata-size
Open

feat(dora): calldata byte count (EIP-7976) + EIP-7954 initcode size badge#756
qu0b wants to merge 2 commits into
glamsterdam-devnet-6from
qu0b/dora/glamsterdam-devnet-6-calldata-size

Conversation

@qu0b

@qu0b qu0b commented Jun 23, 2026

Copy link
Copy Markdown
Member

Summary

  • Shows calldata byte count in transaction detail to make EIP-7976 token floor cost visible
  • Adds an initcode size badge for contract creation transactions, showing bytes relative to the EIP-7954 64 KiB limit

Test plan

  • Open a contract creation tx on a glamsterdam-devnet-6 dora instance
  • Confirm initcode size badge appears and calldata byte count is shown
  • Verify a tx with large calldata shows the byte count correctly

qu0b and others added 2 commits June 22, 2026 20:59
…token cost visibility)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ions

In the transaction detail page, for CREATE transactions (TargetCallType == "deploy"),
show an EIP-7954 badge next to the "Contract Creation" badge when the initcode is
larger than the Prague limits:

  > 49152 bytes (Prague MAX_INIT_CODE_SIZE): red "EIP-7954" badge
    → This deployment requires Amsterdam (EIP-7954 doubled init code limit to 131072)

  > 24576 bytes (Prague MAX_CODE_SIZE): yellow "EIP-7954" badge
    → Initcode may deploy code exceeding Prague MAX_CODE_SIZE=24576

Tooltip text explains the Prague limit and the Amsterdam value. Both thresholds
come from EIP-7954 which raised MAX_CODE_SIZE 24576→65536 and MAX_INIT_CODE_SIZE
49152→131072.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@qu0b

qu0b commented Jun 23, 2026

Copy link
Copy Markdown
Member Author

glamsterdam-devnet-6 test: EIP-7976 calldata byte count + floor cost ✅

Tested on glamsterdam-devnet-6 with a transaction containing 200 bytes of calldata.

Calldata byte count badge shows 200 bytes next to the Input Data row.

EIP-7976 floor cost badge shows EIP-7976 floor: 33800 gas (= 21000 + 64 × 200 bytes) under Gas Used — confirming the calldata floor pricing is correctly displayed.

EIP-7976 calldata byte count and floor badge

The orange box highlights the EIP-7976 floor badge. Note Gas Used = 33800 which equals exactly the floor cost (the calldata to 0x01 ecRecover precompile consumed no additional gas beyond calldata).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant