mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-05-03 01:41:48 +00:00
core,vm: implement System.Runtime.GasLeft syscall
This commit is contained in:
parent
a7d4fff897
commit
a4e4439967
5 changed files with 31 additions and 0 deletions
|
@ -54,3 +54,9 @@ func Application() byte {
|
|||
func Verification() byte {
|
||||
return 0x00
|
||||
}
|
||||
|
||||
// GasLeft returns the amount of gas available for the current execution.
|
||||
// This function uses `System.Runtime.GasLeft` syscall.
|
||||
func GasLeft() int64 {
|
||||
return 0
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue