-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TRX Not Forwarding in receive() and fallback() on Tron Despite Successful Transaction #6166
Comments
What does it mean 'the transaction passes but the funds get stuck in the contract'? |
You can see in the code the recieve and fallback functions are sending received funds to destination address. But that doesn't happen and the transaction passes and received funds remain in contract. |
@abdullahAttiq could you show me the Transaction Hash or Transaction Details in TranScan. Example Transaction Details. |
Bu
But this same code worked on eth testnet |
@abdullahAttiq sorry on eth it may allow. |
@abdullahAttiq, I apologize for the previous misleading information. After I created the smart contract, I directly transferred TRX to the contract address using the TranLink Transfer function. However, this does not trigger the smart contract's functions. To successfully transfer TRX to the destination, you need to call As I tested, neither TranLink nor TranScan provides an easy way to trigger smart contract functions. I suggest using the wallet CLI instead. Here’s an example command for the wallet CLI:
For usage reference, visit this link. This command will send 100 TRX and trigger the Additionally, I’ve written a sample Java gRPC method, which you can find here. |
i am trying a thing where recieve funds will instantaniously transfered to a predefined wallet.
after the transfer the transaction passes but the funds get stuck in the contract.
note: this code works alright in EVM chains
The text was updated successfully, but these errors were encountered: