Skip to content

Commit

Permalink
Optimize store_slice function to reduce gas consumption
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Oct 21, 2024
1 parent 921aa29 commit 3158025
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto/smartcont/stdlib.fc
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ builder store_ref(builder b, cell c) asm(c b) "STREF";


;;; Stores `slice` [s] into `builder` [b]
builder store_slice(builder b, slice s) asm "STSLICER";
builder store_slice(builder b, slice s) asm(s b) "STSLICE";

;;; Stores (serializes) an integer [x] in the range `0..2^120 − 1` into `builder` [b].
;;; The serialization of [x] consists of a 4-bit unsigned big-endian integer `l`,
Expand Down

1 comment on commit 3158025

@hossen71

This comment was marked as spam.

Please sign in to comment.