interop/runtime: synchronize trigger values with smartcontract/trigger
Neo 3.0 has new updated and improved constants. A better (non-function-based) fix requires #1154 to be solved.
This commit is contained in:
parent
b823a516f1
commit
b3e450477d
1 changed files with 8 additions and 2 deletions
|
@ -43,16 +43,22 @@ func GetTrigger() byte {
|
||||||
return 0x00
|
return 0x00
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// System returns the System trigger type value to compare with
|
||||||
|
// GetTrigger return value.
|
||||||
|
func System() byte {
|
||||||
|
return 0x01
|
||||||
|
}
|
||||||
|
|
||||||
// Application returns the Application trigger type value to compare with
|
// Application returns the Application trigger type value to compare with
|
||||||
// GetTrigger return value.
|
// GetTrigger return value.
|
||||||
func Application() byte {
|
func Application() byte {
|
||||||
return 0x10
|
return 0x40
|
||||||
}
|
}
|
||||||
|
|
||||||
// Verification returns the Verification trigger type value to compare with
|
// Verification returns the Verification trigger type value to compare with
|
||||||
// GetTrigger return value.
|
// GetTrigger return value.
|
||||||
func Verification() byte {
|
func Verification() byte {
|
||||||
return 0x00
|
return 0x20
|
||||||
}
|
}
|
||||||
|
|
||||||
// GasLeft returns the amount of gas available for the current execution.
|
// GasLeft returns the amount of gas available for the current execution.
|
||||||
|
|
Loading…
Reference in a new issue