mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-04 19:19:44 +00:00
core: fix a typo in GetUnspentCoins interop
Fix a bug introduced in 8ed77f0d
.
This commit is contained in:
parent
ff0241ed07
commit
86ce234d5f
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))
|
||||
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))
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue