From 86ce234d5f3c871f9dfce48f912ce27fe6b544cb Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Mon, 25 May 2020 11:14:33 +0300 Subject: [PATCH] core: fix a typo in GetUnspentCoins interop Fix a bug introduced in 8ed77f0d. --- pkg/core/interop_neo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/core/interop_neo.go b/pkg/core/interop_neo.go index 20fbcec56..64cb44614 100644 --- a/pkg/core/interop_neo.go +++ b/pkg/core/interop_neo.go @@ -186,7 +186,7 @@ func (ic *interopContext) txGetUnspentCoins(v *vm.VM) error { } items := make([]vm.StackItem, 0, len(ucs.States)) - for i := range items { + for i := range ucs.States { if ucs.States[i].State&state.CoinSpent == 0 { items = append(items, vm.NewInteropItem(&ucs.States[i].Output)) }