Merge pull request #984 from nspcc-dev/fix/state
core: fix a typo in GetUnspentCoins interop
This commit is contained in:
commit
7a783b64d7
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue