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
I'm using react-native and testing on the iPhone. I'm having trouble getting the transfer result and the updated balance.
MetaMask SDK Version
0.28.2
MetaMask Mobile app Version
7.29.2
What browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
Describe the Bug
There is a currency called RAI, however, when I use the function
web3 = new Web3(provider);
contract = new web3.eth.Contract(contractAbi, contractAddress);
contract.methods.transfer(recipient, amount).send({ from: account })
on the web it works, and if I use it for the MetaMask app, it opens the app and shows the name of the currency. But I don't get a response when I'm waiting for the transaction result.
So for the app I tried to use the code below:
web3 = new Web3(provider);
contract = new web3.eth.Contract(contractAbi, contractAddress);
const transactionParameters = {
to,
from,
data: contract.methods.transfer(to, value).encodeABI(),
};
const txHash = await provider?.request({
method: 'eth_sendTransaction',
params: [transactionParameters],
});
The name of the currency does not appear in the MetaMask app, instead the name ERC20 appears.
I tried to use the same function as on the web, but I don't get any feedback when there is no error and I don't know how to get this feedback.
Expected Behavior
Get feedback from the Metamask app whether the transaction was successful or not. And the current balance value.
Link to reproduction - Issues with a link to complete (but minimal) reproduction code will be addressed faster
hi @filipe56 I'm trying to reproduce the issue you have, in the mean time would you please try using our latest release and see if that fixes your issue?
Use:
"@metamask/sdk": "^0.29.2",
"@metamask/sdk-react": "^0.29.2",
This error is located at:
in jf (created by Ff)
in Ff (created by WithSDKConfig)
in WithSDKConfig (created by SafeApp)
in qf (created by SafeApp)
in SafeApp
in RCTView (created by View)
in View (created by AppContainer)
in RCTView (created by View)
in View (created by AppContainer)
in AppContainer
in reserva(RootComponent), js engine: hermes
SDK
React-Native
Provide environment information
I'm using react-native and testing on the iPhone. I'm having trouble getting the transfer result and the updated balance.
MetaMask SDK Version
0.28.2
MetaMask Mobile app Version
7.29.2
What browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
Describe the Bug
There is a currency called RAI, however, when I use the function
on the web it works, and if I use it for the MetaMask app, it opens the app and shows the name of the currency. But I don't get a response when I'm waiting for the transaction result.
So for the app I tried to use the code below:
The name of the currency does not appear in the MetaMask app, instead the name ERC20 appears.
I tried to use the same function as on the web, but I don't get any feedback when there is no error and I don't know how to get this feedback.
Expected Behavior
Get feedback from the Metamask app whether the transaction was successful or not. And the current balance value.
Link to reproduction - Issues with a link to complete (but minimal) reproduction code will be addressed faster
No response
To Reproduce
package.json:
Use the function below:
The text was updated successfully, but these errors were encountered: