neoneo-go/pkg/rpc/testdata/test_contract.go
Evgenii Stratonikov a2f012e589 core: deploy new smart-contract in test blocks
Also put smart-contract sources in testdata and
add invocation TX with APPCALL and storage.Put.
2020-02-18 11:59:28 +03:00

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
}