From 598625c2aa765e37a7aaa91295abce7bf5a42ed6 Mon Sep 17 00:00:00 2001 From: jonny rhea Date: Mon, 3 Nov 2025 20:31:25 -0600 Subject: [PATCH] core/vm: add missing immediate operand tests --- core/vm/instructions_test.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/core/vm/instructions_test.go b/core/vm/instructions_test.go index 65792a39f5..e6a3405f6a 100644 --- a/core/vm/instructions_test.go +++ b/core/vm/instructions_test.go @@ -1094,6 +1094,21 @@ func TestEIP8024_Execution(t *testing.T) { codeHex: "600060016002e801", // (n,m=2,3 need at least 4 items have 3) wantErr: true, }, + { + name: "MISSING_IMMEDIATE_DUPN", + codeHex: "e6", // no operand + wantErr: true, + }, + { + name: "MISSING_IMMEDIATE_SWAPN", + codeHex: "e7", // no operand + wantErr: true, + }, + { + name: "MISSING_IMMEDIATE_EXCHANGE", + codeHex: "e8", // no operand + wantErr: true, + }, } for _, tc := range tests {