We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e806bf commit 5920f80Copy full SHA for 5920f80
crypto/vm/vm.h
@@ -373,11 +373,11 @@ class VmState final : public VmStateInterface {
373
int jump_to(Ref<Continuation> cont) {
374
int res = 0, cnt = 0;
375
while (cont.not_null()) {
376
- cnt++;
377
cont = cont->is_unique() ? cont.unique_write().jump_w(this, res) : cont->jump(this, res);
378
- }
379
- if (global_version >= 9 && cnt > free_nested_cont_jump) {
380
- consume_gas(cnt - free_nested_cont_jump);
+ cnt++;
+ if (cnt > free_nested_cont_jump && global_version >= 9) {
+ consume_gas(1);
+ }
381
}
382
return res;
383
0 commit comments