Merge pull request #984 from nspcc-dev/fix/state

core: fix a typo in GetUnspentCoins interop
This commit is contained in:
Roman Khimov 2020-05-25 12:28:39 +03:00 committed by GitHub
commit 7a783b64d7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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))
}