Skip to content

Commit

Permalink
Removed unneccessary noop middleware and renamed method to classic name
Browse files Browse the repository at this point in the history
  • Loading branch information
Skydev0h committed Jan 24, 2024
1 parent c5c65d1 commit 0c9fa87
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions contracts/wallet_v5.fc
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ cell verify_actions(cell c5) inline {
}

;; Dispatches already authenticated request.
() dispatch_complex_request_inline(slice cs) impure inline {
;; this function is explicitly included as an inline reference - not completely inlined
;; completely inlining it causes undesirable code split and noticeable gas increase in some paths
() dispatch_complex_request(slice cs) impure inline_ref {

;; Recurse into extended actions until we reach standard actions
while (cs~load_uint(1)) {
Expand Down Expand Up @@ -142,18 +144,12 @@ cell verify_actions(cell c5) inline {
return ();
}

() dispatch_complex_request_iref(slice cs) impure inline_ref {
;; this function is explicitly included as an inline reference - not completely inlined
;; completely inlining it causes undesirable code split and noticeable gas increase in some paths
dispatch_complex_request_inline(cs);
}

() dispatch_extension_request(slice cs, var dummy1) impure inline {
set_actions_if_simple(cs); ;; <- ifnot (cs.preload_uint(1)) { set_actions(cs.preload_ref().verify_actions()); return (); }
;; <<<<<<<<<<---------- Simple primary cases gas evaluation ends here ---------->>>>>>>>>>
;;
dummy1~impure_touch(); ;; DROP merged to 2DROP!
dispatch_complex_request_iref(cs);
dispatch_complex_request(cs);
}

;; Verifies signed request, prevents replays and proceeds with `dispatch_request`.
Expand Down Expand Up @@ -195,7 +191,7 @@ cell verify_actions(cell c5) inline {
;; <<<<<<<<<<---------- Simple primary cases gas evaluation ends here ---------->>>>>>>>>>

;; inline_ref required because otherwise it will produce undesirable JMPREF
dispatch_complex_request_iref(cs);
dispatch_complex_request(cs);
}

() recv_external(slice body) impure inline {
Expand Down

0 comments on commit 0c9fa87

Please sign in to comment.