Skip to content

Commit

Permalink
Merge pull request #41 from BorysMinaiev/main
Browse files Browse the repository at this point in the history
Use uint16 instead of int16 in royalty parsing as per TLb-scheme
  • Loading branch information
arseny30 authored Oct 25, 2022
2 parents cf60d3b + 9c46803 commit 26376de
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions func/common.fc
Original file line number Diff line number Diff line change
Expand Up @@ -186,17 +186,17 @@ cell pack_item_config(int item_index, slice collection_address) inline {

cell pack_nft_royalty_params(int numerator, int denumerator, slice destination) inline {
return begin_cell()
.store_int(numerator, 16)
.store_int(denumerator, 16)
.store_uint(numerator, 16)
.store_uint(denumerator, 16)
.store_slice(destination)
.end_cell();
}

(int, int, slice) unpack_nft_royalty_params(cell c) inline {
var cs = c.begin_parse();
var res = (
cs~load_int(16),
cs~load_int(16),
cs~load_uint(16),
cs~load_uint(16),
cs~load_msg_addr()
);
cs.end_parse();
Expand Down

0 comments on commit 26376de

Please sign in to comment.