EIP-8456: CALLSTATUS instruction proposed
Oct 28 find · published Oct 26Svlachakis proposes CALLSTATUS, a new EVM instruction that exposes the completion status of the most recent call as three bits. The instruction, tentatively at opcode 0xA5 costing 2 gas, distinguishes reverts from out-of-gas failures and halts without requiring gas arithmetic. It returns 0 for success, 1 for revert, 2 for halt, 4 for success with a halt below, or 5 for revert with a halt below. This lets contracts reliably detect failures after repricing forks, solving the problem that every repricing fork has broken gas-based thresholds. A sticky halt flag travels up through frame completions so intermediaries like proxies and batches cannot mask halts as deliberate reverts. Outstanding issues include finalizing the opcode number, deciding whether to expose the halt bit for success cases, and building prototype implementations and compiler support.
Comments
Sign in to join the conversation.