Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion nft/nft-item-editable-DRAFT.fc
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ int min_tons_for_storage() asm "50000000 PUSHINT"; ;; 0.05 TON

() send_msg(slice to_address, int amount, int op, int query_id, builder payload, int send_mode) impure inline {
var msg = begin_cell()
.store_uint(0x10, 6) ;; nobounce - int_msg_info$0 ihr_disabled:Bool bounce:Bool bounced:Bool src:MsgAddress -> 011000
.store_uint(0x10, 6) ;; nobounce - int_msg_info$0 ihr_disabled:Bool bounce:Bool bounced:Bool src:MsgAddress -> 010000
.store_slice(to_address)
.store_coins(amount)
.store_uint(0, 1 + 4 + 4 + 64 + 32 + 1 + 1)
Expand All @@ -72,6 +72,7 @@ int min_tons_for_storage() asm "50000000 PUSHINT"; ;; 0.05 TON
slice response_destination = in_msg_body~load_msg_addr();
in_msg_body~load_int(1); ;; this nft don't use custom_payload
int forward_amount = in_msg_body~load_coins();
throw_unless(708, slice_bits(in_msg_body) >= 1);

int rest_amount = my_balance - min_tons_for_storage();
if (forward_amount) {
Expand Down