vm/tests: make test interop push non-nil InteropItem

This commit is contained in:
Evgenii Stratonikov 2020-05-21 08:41:48 +03:00
parent a44acd25bb
commit 820b050b18

View file

@ -112,7 +112,7 @@ func TestUT(t *testing.T) {
func getTestingInterop(id uint32) *InteropFuncPrice { func getTestingInterop(id uint32) *InteropFuncPrice {
if id == binary.LittleEndian.Uint32([]byte{0x77, 0x77, 0x77, 0x77}) { if id == binary.LittleEndian.Uint32([]byte{0x77, 0x77, 0x77, 0x77}) {
return &InteropFuncPrice{InteropFunc(func(v *VM) error { return &InteropFuncPrice{InteropFunc(func(v *VM) error {
v.estack.Push(&Element{value: (*InteropItem)(nil)}) v.estack.PushVal(&InteropItem{new(int)})
return nil return nil
}), 0} }), 0}
} }