Skip to content

Commit

Permalink
rename PER_CONTRACT_CODE_BASE_COST to PER_AUTH_BASE_COST
Browse files Browse the repository at this point in the history
  • Loading branch information
sudeepdino008 committed Jun 25, 2024
1 parent eadc2cf commit 0925ed1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EIPS/eip-7702.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Note that the signer of an authorization tuple may be different than `tx.origin`

#### 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.

Expand Down

0 comments on commit 0925ed1

Please sign in to comment.