-
Notifications
You must be signed in to change notification settings - Fork 394
feat: TRON WalletConnect Structure Compatibility Update #917
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
Conversation
|
Someone is attempting to deploy a commit to the Reown Team on Vercel. A member of the Team first needs to authorize it. |
# Conflicts: # advanced/dapps/react-dapp-v2/pnpm-lock.yaml
# Conflicts: # advanced/dapps/react-dapp-v2/package.json # advanced/dapps/react-dapp-v2/pnpm-lock.yaml # advanced/dapps/react-dapp-v2/src/contexts/JsonRpcContext.tsx
…correct param order
|
fix: return cached TronWeb instance and switch to verifyMessageV2
|
|
I have merged the latest from main and it runs successfully. |
|
Hi @ganchoradkov, The TRON RPC documentation has been updated: https://docs.reown.com/advanced/multichain/rpc-reference/tron-rpc This PR implements backward compatibility for TRON transaction structures. When Could you please help review the demo code to ensure it correctly handles both transaction formats based on |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
|
hey @myzykj tha dapp build fails with could you check please, we're ready to merge otherwise |
|
I reimplemented the PR here #942, closing this one and will merge the successor |
TRON WalletConnect Structure Compatibility Update
Description
This PR updates the TRON WalletConnect implementation to align the transaction signing data structures exchanged between DApps and wallets. The change ensures backward compatibility across different versions of the transaction data format. The changes include:
Dapp side updates:
tron_method_versionsession property to indicate the structure version being usedtron_method_version === "v1", uses the new structure:params = { address, transaction }tron_method_version !== "v1"or not present, uses the old structure:params = { address, transaction: { transaction } }Wallet side updates:
request.params.transaction?.transaction || request.params.transactionBackward compatibility: