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 am sending a transaction to call a method of a smart contract. The code is working fine on my desktop, where he sends the transaction to the contract address (as specified in the "to" field). However … on my phone or in the MetaMask app itself, it tries to deploy a contract and therfore the transaction fails?!
This is the code I am using to send the transaction (using “request”)
Hey!
I am sending a transaction to call a method of a smart contract. The code is working fine on my desktop, where he sends the transaction to the contract address (as specified in the "to" field). However … on my phone or in the MetaMask app itself, it tries to deploy a contract and therfore the transaction fails?!
This is the code I am using to send the transaction (using “request”)
.request({
method: "eth_sendTransaction",
params: [{
"from": "VALIDADDRESS",
"to": "CONTRACTADDRESS",
"data": "HASH_OF_INVOKED_METHOD_SIGNATURE_AND_ENCODED_PARAMETERS"
}]
Transaction sent through MetaMask Mobile:
Transaction sent through MetaMask Desktop Extension (works as expected)
What is going on here? Did i miss something?
Expected behavior
Same behavior on smartphone as on desktop
Smartphone (please complete the following information):
to be added after bug submission by internal support / PM
Severity
The text was updated successfully, but these errors were encountered: