Skip to content

fix(wallet): approval popup crash on network mismatch#11058

Merged
brancoder merged 6 commits intodevelopfrom
tooling-wallet/fix-wallet-approval-crash-net-work-mismatch
Apr 1, 2026
Merged

fix(wallet): approval popup crash on network mismatch#11058
brancoder merged 6 commits intodevelopfrom
tooling-wallet/fix-wallet-approval-crash-net-work-mismatch

Conversation

@evavirseda
Copy link
Copy Markdown
Member

@evavirseda evavirseda commented Mar 31, 2026

context here

When the dashboard is on testnet and the wallet is on devnet,
the transaction approval popup crashed because useTransactionData
was trying to look up testnet objects on devnet — and those don't exist there.

Changes

  • Removed useTransactionData from the approval flow — it was redundant
    and caused the crash by ignoring the dapp's network (chain param)
  • Switched to useTransactionDryRun — already supports the chain parameter
    and provides the same loading/error states
  • Used transaction.getData() for the details tab — no RPC call needed,
    data is already available in the transaction object

@evavirseda evavirseda requested a review from a team as a code owner March 31, 2026 13:51
@github-actions github-actions Bot added the wallet Issues related to the IOTA Wallet label Mar 31, 2026
@iota-ci iota-ci added the tooling Issues related to the Tooling team label Mar 31, 2026
@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 31, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
apps-backend Ready Ready Preview, Comment Apr 1, 2026 1:56pm
apps-ui-kit Ready Ready Preview Apr 1, 2026 1:56pm
iota-evm-bridge Ready Ready Preview, Comment Apr 1, 2026 1:56pm
rebased-explorer Ready Ready Preview, Comment Apr 1, 2026 1:56pm
wallet-dashboard Ready Ready Preview Apr 1, 2026 1:56pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
iota-multisig-toolkit Ignored Ignored Preview Apr 1, 2026 1:56pm

Request Review

@vercel vercel Bot temporarily deployed to Preview – wallet-dashboard March 31, 2026 14:00 Inactive
@vercel vercel Bot temporarily deployed to Preview – rebased-explorer March 31, 2026 14:00 Inactive
@vercel vercel Bot temporarily deployed to Preview – apps-backend March 31, 2026 14:01 Inactive
@vercel vercel Bot temporarily deployed to Preview – iota-evm-bridge March 31, 2026 14:01 Inactive
@evavirseda evavirseda self-assigned this Apr 1, 2026
Copy link
Copy Markdown
Contributor

@brancoder brancoder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we could update the useTransactionDryRun queryKey to contain sender and chain: queryKey: ['dryRunTransaction', sender, chain, transaction.getData()], wdyt?

@vercel vercel Bot temporarily deployed to Preview – apps-backend April 1, 2026 09:25 Inactive
@vercel vercel Bot temporarily deployed to Preview – iota-multisig-toolkit April 1, 2026 09:25 Inactive
@vercel vercel Bot temporarily deployed to Preview – iota-evm-bridge April 1, 2026 09:25 Inactive
@vercel vercel Bot temporarily deployed to Preview – wallet-dashboard April 1, 2026 09:25 Inactive
@vercel vercel Bot temporarily deployed to Preview – rebased-explorer April 1, 2026 09:25 Inactive
@evavirseda evavirseda requested a review from brancoder April 1, 2026 09:25
@vercel vercel Bot temporarily deployed to Preview – apps-backend April 1, 2026 09:27 Inactive
@vercel vercel Bot temporarily deployed to Preview – iota-evm-bridge April 1, 2026 09:27 Inactive
@vercel vercel Bot temporarily deployed to Preview – wallet-dashboard April 1, 2026 09:27 Inactive
@vercel vercel Bot temporarily deployed to Preview – rebased-explorer April 1, 2026 09:27 Inactive
@vercel vercel Bot temporarily deployed to Preview – iota-multisig-toolkit April 1, 2026 09:27 Inactive
@vercel vercel Bot temporarily deployed to Preview – iota-multisig-toolkit April 1, 2026 09:38 Inactive
@vercel vercel Bot temporarily deployed to Preview – iota-evm-bridge April 1, 2026 09:38 Inactive
@vercel vercel Bot temporarily deployed to Preview – wallet-dashboard April 1, 2026 09:38 Inactive
@vercel vercel Bot temporarily deployed to Preview – rebased-explorer April 1, 2026 09:38 Inactive
@vercel vercel Bot temporarily deployed to Preview – apps-ui-kit April 1, 2026 09:38 Inactive
@vercel vercel Bot temporarily deployed to Preview – apps-backend April 1, 2026 09:39 Inactive
@vercel vercel Bot temporarily deployed to Preview – apps-ui-kit April 1, 2026 13:55 Inactive
@vercel vercel Bot temporarily deployed to Preview – rebased-explorer April 1, 2026 13:55 Inactive
@vercel vercel Bot temporarily deployed to Preview – apps-backend April 1, 2026 13:55 Inactive
@vercel vercel Bot temporarily deployed to Preview – wallet-dashboard April 1, 2026 13:55 Inactive
@vercel vercel Bot temporarily deployed to Preview – iota-evm-bridge April 1, 2026 13:56 Inactive
@brancoder brancoder merged commit 5cd22a1 into develop Apr 1, 2026
40 checks passed
@brancoder brancoder deleted the tooling-wallet/fix-wallet-approval-crash-net-work-mismatch branch April 1, 2026 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tooling Issues related to the Tooling team wallet Issues related to the IOTA Wallet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants