There are use-cases in which you would like to attach more GAS than required to just execute the main code path or exactly specify the attached GAS. This can be for example to allow the contract to burn the remaining GAS to the benefit of the NEO community (here is an example of such a contract that does this), or simply to debug insufficient GAS scenario's.
At this time all invocations seem to default to 20 GAS (as defined by TestModeGas)
|
: base(TriggerType.Application, container, new SnapshotCache(checkpointStore), persistingBlock, settings, TestModeGas, witnessChecker) |
There are use-cases in which you would like to attach more GAS than required to just execute the main code path or exactly specify the attached GAS. This can be for example to allow the contract to burn the remaining GAS to the benefit of the NEO community (here is an example of such a contract that does this), or simply to debug insufficient GAS scenario's.
At this time all invocations seem to default to 20 GAS (as defined by
TestModeGas)neo-debugger/src/adapter3/DebugApplicationEngine.cs
Line 30 in 1194d55