Hi guys, I want to implement a method to transfer all amount of a Jetton of the contract to another wallet

global slice centralize_wallet
transfer_jetton(slice jetton_master) {
transfer jetton of this.contract to centralzie_wallet
}

How can I get jetton wallet and jetton amount of current contract inside FunC code? As I know we can't call get method of another contract inside current contract.

Sep 11, 2023, 7:08 AM
You can't do it directly. TON is only possible through message passing and is triggered by the internal{...} area.
Sep 11, 2023, 7:11 AM
you mean In my Dapp, I must specify contract_jetton_wallet, target_jetton_wallet, amount and send them to the contract to execute function transfer_jetton, right?
so this function must be transfer_jetton(slice source, slice target, int amount)
Sep 11, 2023, 7:14 AM

© 2024 Draquery.com All rights reserved.