mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-05 03:58:23 +00:00
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))
|
||||
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