From 84874b11aa43a8001da1d6d736afd9a2a37b9267 Mon Sep 17 00:00:00 2001 From: Sam Wilson Date: Mon, 19 Feb 2024 16:21:25 -0500 Subject: [PATCH] Add note about warming account --- EIPS/eip-5920.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/EIPS/eip-5920.md b/EIPS/eip-5920.md index df03678645a65c..ba7a1ac496ef99 100644 --- a/EIPS/eip-5920.md +++ b/EIPS/eip-5920.md @@ -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) | @@ -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: