forked from TrueCloudLab/neoneo-go
vm/tests: make test interop push non-nil InteropItem
This commit is contained in:
parent
a44acd25bb
commit
820b050b18
1 changed files with 1 additions and 1 deletions
|
@ -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}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue