diff --git a/pkg/core/interop_neo.go b/pkg/core/interop_neo.go index 7140b1fa2..1819bedd3 100644 --- a/pkg/core/interop_neo.go +++ b/pkg/core/interop_neo.go @@ -144,8 +144,13 @@ func (ic *interopContext) txGetReferences(v *vm.VM) error { } stackrefs := make([]vm.StackItem, 0, len(refs)) - for _, tio := range refs { - stackrefs = append(stackrefs, vm.NewInteropItem(tio)) + for i := range tx.Inputs { + for j := range refs { + if refs[j].In == tx.Inputs[i] { + stackrefs = append(stackrefs, vm.NewInteropItem(refs[j])) + break + } + } } v.Estack().PushVal(stackrefs) return nil