core: fix a typo in GetUnspentCoins interop

Fix a bug introduced in 8ed77f0d.
This commit is contained in:
Evgenii Stratonikov 2020-05-25 11:14:33 +03:00
parent ff0241ed07
commit 86ce234d5f

View file

@ -186,7 +186,7 @@ func (ic *interopContext) txGetUnspentCoins(v *vm.VM) error {
} }
items := make([]vm.StackItem, 0, len(ucs.States)) 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 { if ucs.States[i].State&state.CoinSpent == 0 {
items = append(items, vm.NewInteropItem(&ucs.States[i].Output)) items = append(items, vm.NewInteropItem(&ucs.States[i].Output))
} }