Skip to content

Commit

Permalink
7702: update costs
Browse files Browse the repository at this point in the history
  • Loading branch information
lightclient committed Jun 24, 2024
1 parent cd7df8c commit 5f72171
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions EIPS/eip-7702.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ There is a lot of interest in adding short-term functionality improvements to EO

### Parameters

| Parameter | Value |
| -------------------- | ------ |
| `SET_CODE_TX_TYPE` | `0x04` |
| `MAGIC` | `0x05` |
| `PER_AUTH_BASE_COST` | `2500` |
| Parameter | Value |
| -------------------- | ------- |
| `SET_CODE_TX_TYPE` | `0x04` |
| `MAGIC` | `0x05` |
| `PER_AUTH_BASE_COST` | `10000` |

### Set Code Transaction

Expand Down Expand Up @@ -75,9 +75,9 @@ In case a delegation designator points to another designator, creating a potenti

#### Gas Costs

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`.
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_AUTH_BASE_COST * authorization list length`.

The transaction sender will pay for all authorization tuples, regardless of validity or duplication.
The transaction sender will pay for all authorization tuples, regardless of validity or duplication. An additional fee of `25000` gas is levied for every auth from an account that does not yet exist.

#### Transaction Origination

Expand Down

0 comments on commit 5f72171

Please sign in to comment.