Skip to content

Commit

Permalink
Add note about warming account
Browse files Browse the repository at this point in the history
  • Loading branch information
SamWilsn committed Feb 23, 2024
1 parent b128dbd commit 84874b1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions EIPS/eip-5920.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ Currently, to send ether to an address requires you to call into that address, w

## Specification

### Constants

| Constant | Definition |
| -------------------------- | ------------------------- |
| `WARM_STORAGE_READ_COST` | [EIP-2929](./eip-2929.md) |
Expand All @@ -35,10 +37,15 @@ Currently, to send ether to an address requires you to call into that address, w
[gna]: https://github.com/ethereum/execution-specs/blob/4d953035fb0cceda7cf21d71b2ab7a9a6f4632f0/src/ethereum/frontier/vm/gas.py#L52
[gcv]: https://github.com/ethereum/execution-specs/blob/4d953035fb0cceda7cf21d71b2ab7a9a6f4632f0/src/ethereum/frontier/vm/gas.py#L53

### Behavior

A new opcode is introduced: `PAY` (`0xf9`), which:

- Pops two values from the stack: `addr` then `val`.
- Transfers `val` wei from the current target address to the address `addr`.
- Marks `addr` as warm (adding `addr` to `accessed_addresses`.)

### Gas Cost

The gas cost for `PAY` is the sum of the following:

Expand Down

0 comments on commit 84874b1

Please sign in to comment.