rpc: remove Main func from test contract
This commit is contained in:
parent
685d44dbc1
commit
84c148575d
3 changed files with 2 additions and 6 deletions
4
pkg/rpc/server/testdata/test_contract.go
vendored
4
pkg/rpc/server/testdata/test_contract.go
vendored
|
@ -10,10 +10,6 @@ const (
|
|||
decimals = 2
|
||||
)
|
||||
|
||||
func Main(operation string, args []interface{}) interface{} {
|
||||
panic("invoking via Main is no longer supported") // catch possible bugs
|
||||
}
|
||||
|
||||
func Init() bool {
|
||||
ctx := storage.GetContext()
|
||||
h := runtime.GetExecutingScriptHash()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue