From 57fbf1750bcda1e4863d7836234acdd4aa0e7ec0 Mon Sep 17 00:00:00 2001 From: Martin Holst Swende Date: Thu, 8 Jun 2023 21:25:19 +0200 Subject: [PATCH] squash --- core/vm/instructions_test.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/core/vm/instructions_test.go b/core/vm/instructions_test.go index ad78fdd73f221..2860fee78d5f1 100644 --- a/core/vm/instructions_test.go +++ b/core/vm/instructions_test.go @@ -852,6 +852,12 @@ func TestOpMCopy(t *testing.T) { dst: "0x10000000000000000", src: "0x0", len: "0x1", pre: "0", }, + { // MCOPY - copy nothing from 0 to space outside of uint64 + dst: "0x10000000000000000", src: "0x0", len: "0x0", + pre: "", + want: "", + wantGas: 3, + }, { // MCOPY - copy 1 from 0x20 to 0x10, with no prior allocated mem dst: "0x10", src: "0x20", len: "0x1", pre: "", @@ -864,7 +870,7 @@ func TestOpMCopy(t *testing.T) { pre: "", // 32 bytes want: "0x0000000000000000000000000000000000000000000000000000000000000000", - wantGas: 12, + wantGas: 9, }, } { var ( @@ -909,7 +915,6 @@ func TestOpMCopy(t *testing.T) { } // Expand mem if memorySize > 0 { - fmt.Printf("Expanding to %d\n", memorySize) mem.Resize(memorySize) } // Do the copy