From 2d6fb0fee3e7c5f768ae29047051cea6445ea86e Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Mon, 28 Nov 2022 14:22:29 +0100 Subject: [PATCH] Start counting at 17 for EIP-663 --- EIPS/eip-663.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/EIPS/eip-663.md b/EIPS/eip-663.md index b33029063303ba..d15483cad36b66 100644 --- a/EIPS/eip-663.md +++ b/EIPS/eip-663.md @@ -36,7 +36,7 @@ If the code is legacy bytecode, both of these instructions result in an *excepti If the code is valid EOF1, the following execution rules apply: - 1. These instructions are followed by an 8-bit immediate value, which we call `imm`, and can have a value of 0 to 255. We introduce the variable `n` which equals to `imm + 1`. + 1. These instructions are followed by an 8-bit immediate value, which we call `imm`, and can have a value of 0 to 255. We introduce the variable `n` which equals to `imm + 17`. 2. For `DUPN`: - If the current stack depth is less than `n`, then a stack underflow exception is issued. @@ -65,7 +65,7 @@ TBA ## Security Considerations -The authors are not aware of any additional risks introduced here. The EVM stack is fixed at 1024 items and most implementations keep that in memory at all times. This change will increase the easy-to-access number of items from 16 to 256. +The authors are not aware of any additional risks introduced here. The EVM stack is fixed at 1024 items and most implementations keep that in memory at all times. This change will increase the easy-to-access number of items from 16 to 274. ## Copyright