mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-05-02 15:44:41 +00:00
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:
parent
0b96e6a048
commit
f2cb1d5f02
4 changed files with 13 additions and 24 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue