core,vm: implement System.Runtime.GasLeft syscall

This commit is contained in:
Evgenii Stratonikov 2020-06-16 12:04:08 +03:00
parent a7d4fff897
commit a4e4439967
5 changed files with 31 additions and 0 deletions

View file

@ -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
}