hey, guys! what does SendMode.PAY_GAS_SEPARATELY mean in ton-core? Is there any way to make sure I transfer enough money to a contract taking into account storage and gas fee?
May 28, 2023, 5:17 PM
For example you send 1 ton.
Without this flag your balance will decrease for 1 ton, but receiver will receive less.
With this flag, receiver will receive same 1 ton (minus his own storage fees), but your balance will decrease a bit more.
Without this flag your balance will decrease for 1 ton, but receiver will receive less.
With this flag, receiver will receive same 1 ton (minus his own storage fees), but your balance will decrease a bit more.
May 28, 2023, 5:22 PM
I also understood it this way, but with this flag my balance somehow does not decrease more
I send 0.1 TON with the flag SendMode.PAY_GAS_SEPARATELY, my balance decreases by 0.1 TON. Then I withdraw money from the contract with send_raw_message(msg, 128) and get only 0.09 TON. No other transactions occur.
May 28, 2023, 5:33 PM