1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-03-09 15:40:10 +00:00

Add send_mode param to tonlib_api msg.message (send_mode=-1 - use default)

This commit is contained in:
tolya-yanot 2021-08-02 23:59:42 +03:00 committed by main
parent 72cf905fd1
commit c1a733c0f0
6 changed files with 10 additions and 3 deletions

View file

@ -40,6 +40,9 @@ td::Result<td::Ref<vm::Cell>> WalletV3::make_a_gift_message(const td::Ed25519::P
if (gift.gramms == -1) {
send_mode += 128;
}
if (gift.send_mode > -1) {
send_mode = gift.send_mode;
}
cb.store_long(send_mode, 8).store_ref(create_int_message(gift));
}