Skip to content

Commit b813326

Browse files
authored
Update EIP-7069: Make explicit that returndata buffer is cleared
Merged by EIP-Bot.
1 parent 9cb01c7 commit b813326

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

EIPS/eip-7069.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,16 +71,17 @@ Execution semantics of `EXT*CALL`:
7171
7. If `target_address` is not in the state and the call configuration would result in account creation, charge `ACCOUNT_CREATION_COST` (25000) gas.
7272
- The only such case in this EIP is if `value` is non-zero.
7373
8. Calculate the gas available to callee as caller's remaining gas reduced by `max(floor(gas/64), MIN_RETAINED_GAS)`.
74-
9. Fail with status code `1` returned on stack if any of the following is true (only gas charged until this point is consumed):
74+
9. Clear the returndata buffer.
75+
10. Fail with status code `1` returned on stack if any of the following is true (only gas charged until this point is consumed):
7576
- Gas available to callee at this point is less than `MIN_CALLEE_GAS`.
7677
- Balance of the current account is less than `value`.
7778
- Current call stack depth equals `1024`.
78-
10. Perform the call with the available gas and configuration.
79-
11. Push a status code on the stack:
79+
11. Perform the call with the available gas and configuration.
80+
12. Push a status code on the stack:
8081
- `0` if the call was successful.
8182
- `1` if the call has reverted (also can be pushed earlier in a light failure scenario).
8283
- `2` if the call has failed.
83-
12. Gas not used by the callee is returned to the caller.
84+
13. Gas not used by the callee is returned to the caller.
8485

8586
Execution semantics of `RETURNDATALOAD`:
8687

0 commit comments

Comments
 (0)