← Academy library

Crypto / Evergreen

A failed nested call can differ from a failed transaction

A contract can call another contract and handle a failure without necessarily reverting the entire top-level transaction, depending on the code's control flow.

THE IDEA TO KEEP

Execution success can be layered, so a successful outer transaction does not prove that every internal action achieved its intended result.

The distinction that matters

A contract can call another contract and handle a failure without necessarily reverting the entire top-level transaction, depending on the code's control flow. Gas measures computational and storage-related work under Ethereum's execution rules. The gas limit bounds how much work a transaction may consume, while fee parameters determine the price offered for that work. These are different controls.

How the mechanism works

The final receipt may show success even though a particular internal operation failed and the caller chose an alternative or partial path. A simple transfer and a complex contract interaction can require different amounts of gas even when their economic values are similar. Applications estimate execution before submission, but estimates depend on state and the exact call. The fee market includes a protocol base fee and transaction-specific parameters that influence payment and inclusion. Users may specify ceilings rather than the exact final charge, and unused execution allowance is not automatically spent merely because the limit was high.

A worked situation

Consider this hypothetical situation: A hypothetical batch-processing contract attempts several actions, records one failed subcall, and continues processing the remaining permitted actions. The top-level transaction can succeed while one requested item remains incomplete, making the overall success flag insufficient to describe every effect.

Where interpretation can fail

Applications that interpret only the receipt status can therefore overstate completion when the contract deliberately tolerates subcall failures. Inspect relevant events, return values, traces, and resulting state for the specific operation the user expected to complete. Execution success can be layered, so a successful outer transaction does not prove that every internal action achieved its intended result.

The wider technical implication

Batch contracts sometimes deliberately report per-item outcomes so one failing recipient does not block every other action. That design can improve availability while placing more responsibility on the application to inspect the detailed result. A top-level success receipt then means the batch contract completed its own rules, not that every requested item succeeded. Accounting should reconcile each intended payment or operation against its corresponding event and state change. Retrying the entire batch without understanding partial completion can duplicate successful actions, while retrying only failed items requires reliable identification of those failures.

A global perspective

Gas mechanisms differ across networks and layers. A provider may add service charges, and local accounting rules may classify network costs differently.

Sources & further reading

Ethereum.org — Gas and fees ↗Ethereum.org — Transactions ↗

Sources checked Oct 27, 2026. Educational examples. Historical observations are attributed to their sources. No affiliation with cited organizations.

Make the idea stick.

Mark complete when you are ready. Reaching the end alone does not mark a lesson complete.

What assumption in this guide would change the result in a different situation? Revisit the example and explain that change in your own words.

Explore crypto →

KEEP THE CONNECTION

Your next useful question.

Your saved guides →