From d7bd1e6c8d3c6f637e630155fde5a88adae88a21 Mon Sep 17 00:00:00 2001 From: JukLee0ira Date: Mon, 21 Oct 2024 16:48:18 +0800 Subject: [PATCH] core/vm: rename opcode DIFFICULTY to PREVRANDAO --- core/vm/opcodes.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/vm/opcodes.go b/core/vm/opcodes.go index 162be8f6c8b9..1f451d8762cf 100644 --- a/core/vm/opcodes.go +++ b/core/vm/opcodes.go @@ -311,7 +311,7 @@ var opCodeToString = [256]string{ COINBASE: "COINBASE", TIMESTAMP: "TIMESTAMP", NUMBER: "NUMBER", - DIFFICULTY: "DIFFICULTY", // TODO (MariusVanDerWijden) rename to PREVRANDAO post merge + PREVRANDAO: "PREVRANDAO", GASLIMIT: "GASLIMIT", CHAINID: "CHAINID", SELFBALANCE: "SELFBALANCE", @@ -514,6 +514,7 @@ var stringToOp = map[string]OpCode{ "TIMESTAMP": TIMESTAMP, "NUMBER": NUMBER, "DIFFICULTY": DIFFICULTY, + "PREVRANDAO": PREVRANDAO, "GASLIMIT": GASLIMIT, "SELFBALANCE": SELFBALANCE, "POP": POP,