FrameShrink

Shrink failing Ethereum frame transactions into smaller, reproducible tests.

FrameShrink

Created At

ETHGlobal Mumbai

Project Description

FrameShrink is a CLI debugger for Ethereum’s experimental EIP-8141 frame transactions. It helps developers answer: “What is the smallest example that still produces this failure?”

The guided terminal flow lets users create or select a test wallet, request faucet funds, choose supported failures, and submit a test transaction to the public alt-mempool devnet. FrameShrink captures the rejection, reproduces it locally, and tries removing unnecessary frames and inputs. It keeps an edit only when the smaller transaction preserves the original failure fingerprint.

Developers can inspect transaction previews and changes in their configured editor, export a reproducible regression test, and confirm submission of a corrected transaction to the devnet.

The current version supports five controlled failures: application reverts, forbidden validation state writes, TIMESTAMP, NUMBER, and undeployed-account code access. Existing explorer links can also be inspected, although replay depends on having the required state and setup.

How it's Made

FrameShrink is built with TypeScript and Node.js, packaged as an npm CLI. Inquirer powers the interactive terminal flow, viem handles Ethereum encoding, signing and RPC calls, and Zod validates transaction recipes and captured evidence.

Execution runs through an existing EIP-8141-compatible Ethrex client in Docker, alongside the alt-mempool sidecar’s admission-policy checks. Ethrex provides execution evidence, while the sidecar identifies policy violations. FrameShrink adds the capture, reduction, comparison and regression-export workflow around those components.

We built controlled Solidity fixtures that trigger specific failures. Each reduction candidate is rebuilt and signed again using development accounts, then evaluated against consistent local state. A structured fingerprint prevents the reducer from accepting an unrelated failure, such as a broken signature.

A notable challenge was debugging combined failures: the first rejection can hide later ones. FrameShrink works through the selected failures in stages and verifies a passing control afterward.

background image mobile

Join the mailing list

Get the latest news and updates

FrameShrink | ETHGlobal