Hello

What is it like to use a trc20 token in a smart contract?

I want to set up a contract where the input to the contract is a trc20 token

Sep 23, 2021, 11:09 AM
you change erc20 to trc20, might need to change compiler version too, some versions don't work on tron.
it will still work on tron if you keep it as erc20
Sep 23, 2021, 11:22 AM
No, I just want to use a dedicated token in the Tron smart contract, in other words, it is the input of my dedicated token smart contract, which is made in the Tron network.
Sep 23, 2021, 11:23 AM
You can call it from another contract if that's what you mean
Sep 23, 2021, 11:25 AM
Approve + transferFrom
Sep 23, 2021, 11:25 AM
Yes
Sep 23, 2021, 11:25 AM
For token deposit if that's what you want
Sep 23, 2021, 11:26 AM
With what code?
Sep 23, 2021, 11:26 AM
Approve token from user to contract
Call transferFrom inside the contract
Sep 23, 2021, 11:27 AM
Ok thank you
Sep 23, 2021, 11:28 AM

© 2024 Draquery.com All rights reserved.