Skip to content

Commit

Permalink
fix: contract gas optimisation
Browse files Browse the repository at this point in the history
  • Loading branch information
siandreev committed Sep 27, 2023
1 parent 13d1e72 commit 7356c23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/wallet_v5.fc
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ int pack_address(int wc, int hash) impure asm "SWAP INC XOR"; ;; hash ^ (wc+1)
() set_actions(cell action_list) impure asm "c5 POP";

;; Dispatches already authenticated request.
() dispatch_request(slice cs, int stored_seqno, int stored_subwallet, int public_key, cell extensions) impure {
() dispatch_request(slice cs, int stored_seqno, int stored_subwallet, int public_key, cell extensions) impure inline {

;; Recurse into extended actions until we reach standard actions
while (cs~load_uint(1)) {
Expand Down Expand Up @@ -59,7 +59,7 @@ int pack_address(int wc, int hash) impure asm "SWAP INC XOR"; ;; hash ^ (wc+1)
}

;; Verifies signed request, prevents replays and proceeds with `dispatch_request`.
() process_signed_request(slice body, int stored_seqno, int stored_subwallet, int public_key, cell extensions) impure {
() process_signed_request(slice body, int stored_seqno, int stored_subwallet, int public_key, cell extensions) impure inline {
var signature = body~load_bits(512);
var cs = body;
var (subwallet_id, valid_until, msg_seqno) = (cs~load_uint(80), cs~load_uint(32), cs~load_uint(32));
Expand Down

0 comments on commit 7356c23

Please sign in to comment.