forked from TrueCloudLab/neoneo-go
ae3f15523c
Closes #1234
19 lines
533 B
Go
19 lines
533 B
Go
package iteratorcontract
|
|
|
|
import (
|
|
"github.com/nspcc-dev/neo-go/pkg/interop/iterator"
|
|
"github.com/nspcc-dev/neo-go/pkg/interop/runtime"
|
|
"github.com/nspcc-dev/neo-go/pkg/interop/storage"
|
|
)
|
|
|
|
// NotifyKeysAndValues sends notification with `foo` storage keys and values
|
|
func NotifyKeysAndValues() bool {
|
|
iter := storage.Find(storage.GetContext(), []byte("foo"))
|
|
values := iterator.Values(iter)
|
|
keys := iterator.Keys(iter)
|
|
|
|
runtime.Notify("found storage values", values)
|
|
runtime.Notify("found storage keys", keys)
|
|
|
|
return true
|
|
}
|