Skip to content

Commit

Permalink
remove zero address case
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-cooper committed Oct 22, 2024
1 parent 23f511e commit 6d84465
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EIPS/eip-7791.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Note that the transfer of `wei_val` to the given account cannot fail. In particu
The proposed cost of this opcode is similar to the recently proposed `PAY` opcode, but changing the base cost from `9000` to `2400`. That is:

- The base cost of this opcode is `2400`. This is priced so that invoking `GAS2ETH` on a cold account costs the same as a cold `SSTORE`.
- If `addr` is not the zero address, the [EIP-2929](./eip-2929.md) account access costs for `addr` (but NOT the current account) are also incurred: 100 gas for a warm account, 2600 gas for a cold account, and 25000 gas for a new account.
- The [EIP-2929](./eip-2929.md) account access costs for `addr` (but NOT the current account) are also incurred: 100 gas for a warm account, 2600 gas for a cold account, and 25000 gas for a new account.
- If any of these costs are changed, the pricing for the `GAS2ETH` opcode must also be changed.

Note that the [`EXTCALL`](./eip-7069.md) EIP eliminates the extra gas cost for value transfer. If that proposal is accepted into the EVM, the pricing for `GAS2ETH` should be updated to commensurately reduce or remove the `2400` gas value transfer cost.
Expand Down

0 comments on commit 6d84465

Please sign in to comment.