Closed Jim8y closed 1 month ago
@shargon why every test consumes 10_0xxx_xxxx? Do you know which operation costs that 10_0000_0000, method call?
I have in mind a different approach for this with an Attribute like [GasCost(xxx)]. Let me check it...
@shargon some tests contain multiple contract calls, attribute may work for some tests, its not be conflict with this one.
It must be the native contract initialization, use CreateGasWatcher
instead
It must be the native contract initialization, use
CreateGasWatcher
instead
Sorry, i dont get it, can you give me an example?
It must be the native contract initialization, use
CreateGasWatcher
insteadSorry, i dont get it, can you give me an example?
Done
Maybe we can substract the native cost initialization from the engine
@Jim8y take a look to https://github.com/neo-project/neo-devpack-dotnet/pull/1078
Why still so high?
@shargon fixed and updated.
@shargon good to go now
This pr contains new unit tests that increases the coverage, should be merged before other prs.
This pr adds gas consumption to the tests, by having gas cost, we can see which syntax consumes how many datoshis, and can further help us learn and optimize the compiler.