compiler: use constants in interops

We now support using exported constants, so there is no
need in declaring functions. All functions from `interop/`
are not to be compiled.

Fix #1298.
This commit is contained in:
Evgenii Stratonikov 2020-08-10 17:51:32 +03:00
parent 0b96e6a048
commit f2cb1d5f02
4 changed files with 13 additions and 24 deletions

View file

@ -13,12 +13,12 @@ func Main(operation string, args []interface{}) bool {
trigger := runtime.GetTrigger()
// Log owner upon Verification trigger
if trigger == runtime.Verification() {
if trigger == runtime.Verification {
return CheckWitness()
}
// Discerns between log and notify for this test
if trigger == runtime.Application() {
if trigger == runtime.Application {
return handleOperation(operation, args)
}