From 820b050b181998b1406c294cf1ffedbaea3c33b6 Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Thu, 21 May 2020 08:41:48 +0300 Subject: [PATCH] vm/tests: make test interop push non-nil InteropItem --- pkg/vm/json_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/vm/json_test.go b/pkg/vm/json_test.go index 2bcfc72ef..aed485a9b 100644 --- a/pkg/vm/json_test.go +++ b/pkg/vm/json_test.go @@ -112,7 +112,7 @@ func TestUT(t *testing.T) { func getTestingInterop(id uint32) *InteropFuncPrice { if id == binary.LittleEndian.Uint32([]byte{0x77, 0x77, 0x77, 0x77}) { return &InteropFuncPrice{InteropFunc(func(v *VM) error { - v.estack.Push(&Element{value: (*InteropItem)(nil)}) + v.estack.PushVal(&InteropItem{new(int)}) return nil }), 0} }