forked from TrueCloudLab/neoneo-go
a2f012e589
Also put smart-contract sources in testdata and add invocation TX with APPCALL and storage.Put.
9 lines
237 B
Go
9 lines
237 B
Go
package testdata
|
|
|
|
import "github.com/CityOfZion/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
|
|
}
|