neo-go/pkg/rpc/server/testdata/test_contract.go
2020-03-03 17:21:42 +03:00

9 lines
236 B
Go

package testdata
import "github.com/nspcc-dev/neo-go/pkg/interop/storage"
func Main(operation string, args []interface{}) interface{} {
ctx := storage.GetContext()
storage.Put(ctx, args[0].([]byte), args[1].([]byte))
return true
}