That transaction that you pasted is a transaction that creates a smart contract, and it looks like it created a smart contract without code. You have to deploy first the smart contract properly in order to be able to interact with that smart contract.
the same deployed contract works fine on desktop. I tried Iphone and Android metamask with mobile connect, the transaction was successful, but the function to store a struct doesn’t get executed.
Can you paste a link to a transaction that you say that it works fine on desktop on bscscan? I still don’t understand what is with that transaction that you pasted initially.
This transaction that you pasted here with transaction hash 0xf1db6dfea11c92ec0655e20ecf960f1f892044c8e7b21f23d9da291f82b51262 it doesn’t look like a transaction that calls a contract function, it looks like the previous transaction that you pasted, this is a transaction that tries to deploy a smart contract but it deployed a smart contract with no code, and that looks to be all that this transaction did.
This is the smart contract that was created: https://testnet.bscscan.com/address/0x09bd8cf6e76924f3c081a6317033e5c37364db4e#code
i am facing the same problem. I am calling the contract mint Function with data but its just making a transaction but not calling the specific contract function. any clue or any piece of code that show how to call the function of smart contract with walletconnect and metamask on RN mobile app. Thanks
i have created the transaction with Moralis.executeFunction() . But now i am facing the strange behaviour like metamask appear with the popup that your transaction is unsuccessful but after some time when i review the transaction activity it shows the same transation as successful transaction. and some time an error " undefined object by executing f.transaction" something like that.
well i think the problem is with metamask. Metamask shows the failed transaction when immediately no response from chain. it happens when the transaction in pending mode
Now i am implementing same thing in another app but having issues and this time i have no clue. In package.json i just install the postscript and build fails with the error
FAILURE: Build failed with an exception.
* Where:
Build file 'E:\blockchain\ReactNative\socialtokenapp\node_modules\react-native-os\android\build.gradle' line: 47
* What went wrong:
A problem occurred evaluating project ':react-native-os'.
> Could not find method compile() for arguments [com.facebook.react:react-native:+] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 8s
error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
FAILURE: Build failed with an exception.
* Where:
Build file 'E:\blockchain\ReactNative\socialtokenapp\node_modules\react-native-os\android\build.gradle' line: 47
* What went wrong:
A problem occurred evaluating project ':react-native-os'.
> Could not find method compile() for arguments [com.facebook.react:react-native:+] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 8s
at makeError (E:\blockchain\ReactNative\socialtokenapp\node_modules\execa\index.js:174:9)
at E:\blockchain\ReactNative\socialtokenapp\node_modules\execa\index.js:278:16
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async runOnAllDevices (E:\blockchain\ReactNative\socialtokenapp\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:109:5)
at async Command.handleAction (E:\blockchain\ReactNative\socialtokenapp\node_modules\react-native\node_modules\@react-native-community\cli\build\index.js:192:9)