From 9c46803052bf4356f143ae2d3d7622d30eb6c462 Mon Sep 17 00:00:00 2001 From: Borys Minaiev Date: Mon, 24 Oct 2022 12:19:40 +0100 Subject: [PATCH] Use uint16 instead of int16 in royalty as per TLb --- func/common.fc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/func/common.fc b/func/common.fc index 567685d..b447050 100644 --- a/func/common.fc +++ b/func/common.fc @@ -188,8 +188,8 @@ 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(); } @@ -197,8 +197,8 @@ cell pack_nft_royalty_params(int numerator, int denumerator, slice destination) (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();