Skip to content

Commit 358fc70

Browse files
committed
7702: don't allow designator loops
1 parent 53fbe8d commit 358fc70

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

EIPS/eip-7702.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ The delegation designation uses the banned opcode `0xef` from [EIP-3541](./eip-3
7171

7272
For example, `EXTCODESIZE` would return the size of the code pointed to by `address` instead of `24` which would represent the delegation designation. `CALL` would similarly load the code from `address` and execute it in the context of `authority`.
7373

74+
In case a delegation designator points to another designator, creating a potential chain or loop of designators, clients must retrieve only the first code and then stop following the designator chain.
75+
7476
#### Gas Costs
7577

7678
The intrinsic cost of the new transaction is inherited from [EIP-2930](./eip-2930.md), specifically `21000 + 16 * non-zero calldata bytes + 4 * zero calldata bytes + 1900 * access list storage key count + 2400 * access list address count`. Additionally, we add a cost of `PER_CONTRACT_CODE_BASE_COST * authorization list length`.

0 commit comments

Comments
 (0)