Neo: GasLeft syscall

Created on 24 Mar 2020  路  2Comments  路  Source: neo-project/neo

Summary or problem description
Sometimes the project need to know how much gas left in order to do more things or not. Imagine that you need to fund a lot of addres, you can calculate how many address you can fund according to the gas provided.

Do you have any solution you want to propose?
Add GasLeft syscall

Neo Version

  • Neo 3

Where in the software does this update applies to?

  • InteropServices
discussion

Most helpful comment

Very good idea @shargon ! Useful stuff. I think its important to return the value already deducing the GasLeft operation itself, otherwise we would never exactly know the value (every calculation counts!). Looking forward to see this implemented :+1:

All 2 comments

Makes sense.

Very good idea @shargon ! Useful stuff. I think its important to return the value already deducing the GasLeft operation itself, otherwise we would never exactly know the value (every calculation counts!). Looking forward to see this implemented :+1:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

canesin picture canesin  路  3Comments

erikzhang picture erikzhang  路  4Comments

roman-khimov picture roman-khimov  路  3Comments

Tommo-L picture Tommo-L  路  4Comments

vncoelho picture vncoelho  路  4Comments