You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When initiating a contract transaction with an invalid address in the form of an Array, the Rabby wallet extension responds by displaying a blank page. This issue persists until the erroneous transaction is rejected. During this period, subsequent transactions are unable to load properly. In contrast, other wallet extensions typically return an error message immediately, allowing normal operations to continue unaffected.
Steps to Reproduce:
Initiate a transaction with an address parameter set as an Array (e.g., ["invalid_address"]). Here's an example code(This bug does not occur when using sendTransaction):
import{writeContract}from"viem/actions"import{useWalletClient,useAccount}from"wagmi"constTest=async()=>{const{data: walletClient}=useWalletClient();constaccount=useAccount();if(!account){return;}else{try{console.log('Sending transaction')awaitwriteContract(walletClient,{address : ['0x0d4a11d5EEaaC28EC3F61d100daF4d40471f1852'],// Use UniswapV2Pool address as an exampleabi : [{"constant":false,"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"mint","outputs":[{"internalType":"uint256","name":"liquidity","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"}],functionName : 'mint',args : ['0x0d4a11d5EEaaC28EC3F61d100daF4d40471f1852'],account : account.address})}catch(error){console.log(error)}}}exportdefaultTest;
Observe that the wallet extension responds but the page remains blank.
Attempt subsequent transactions which fail to load properly until the erroneous transaction is handled.
Expected Behavior:
The wallet extension should display an appropriate error message for invalid address inputs, ensuring that subsequent transactions can be processed without issue.
Additional Information:
Rabby Wallet Extension Version: 0.92.88
Browser: Microsoft Edge 128.0.2739.42
Suggestions:
Consider implementing error handling mechanisms to gracefully manage invalid address inputs, thereby preventing disruptions to subsequent transactions.
Thank you for addressing this issue.
Screenshots/Logs:
Label:
Bug
The text was updated successfully, but these errors were encountered:
Issue: Error Handling for Invalid Address Array
Description:
When initiating a contract transaction with an invalid address in the form of an Array, the Rabby wallet extension responds by displaying a blank page. This issue persists until the erroneous transaction is rejected. During this period, subsequent transactions are unable to load properly. In contrast, other wallet extensions typically return an error message immediately, allowing normal operations to continue unaffected.
Steps to Reproduce:
["invalid_address"]
). Here's an example code(This bug does not occur when usingsendTransaction
):Expected Behavior:
The wallet extension should display an appropriate error message for invalid address inputs, ensuring that subsequent transactions can be processed without issue.
Additional Information:
Suggestions:
Consider implementing error handling mechanisms to gracefully manage invalid address inputs, thereby preventing disruptions to subsequent transactions.
Thank you for addressing this issue.
Screenshots/Logs:
Label:
Bug
The text was updated successfully, but these errors were encountered: