Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error ‘Oops Something Went Wrong‘ #4446

Closed
xtiaan3 opened this issue Jun 3, 2022 · 9 comments
Closed

Error ‘Oops Something Went Wrong‘ #4446

xtiaan3 opened this issue Jun 3, 2022 · 9 comments

Comments

@xtiaan3
Copy link

xtiaan3 commented Jun 3, 2022

We are building a web3 app with Wallet Connect and we’re getting an “Oops Something Went Wrong” message during minting on Rinkeby, but the transaction is still successful. Only happens on iPhone. Any help / insight would be appreciated.

packages:
dependencies:
"@walletconnect/web3-provider": "^1.7.7",
"web3": "^1.7.3",
"web3modal": "^1.9.7"

devDependencies:
"@babel/core": "^7.17.9",
"@babel/plugin-transform-runtime": "^7.17.0",
"@babel/preset-env": "^7.16.11",
"babel-loader": "^8.2.5",
"webpack": "^4.46.0",
"webpack-cli": "^4.9.2",

method implementation

contract: is instance of the contract created with web3.js
volume: amount of tokens to mint

contract.methods
        .publicMint(volume)
        .send({
          from: account,
          value: price,
        })
        .once("transactionHash", (hash) => {
          console.log({ hash });
        })
        .once("receipt", async (receipt) => {
          console.log({ receipt });
        })
        .on("error", (err) => {
          errorHandler(err);
        });

2D4CCDF0-8FC6-4066-9EB8-576DB2628EF8

@WenLanBan
Copy link

WenLanBan commented Jun 6, 2022

@Fatxx and @tommasini this may be related to #3927 ?

@tommasini
Copy link
Contributor

Thank you so much for reporting @xtiaan3
Thank you so much for pointing out the relation between both issues!
It seems to be related, but to be sure, @xtiaan3 could you please tell us if you put the MetaMask mobile app in the background when you confirm the transaction?

We are working on one solution already for the #3927 🍀

@xtiaan3
Copy link
Author

xtiaan3 commented Jun 6, 2022

Hi @tommasini let me check with the dev and get back to you here. In the meantime you’re welcome to test the process here. Would appreciate any insights - https://drunkrobots.net/mint

@xtiaan3
Copy link
Author

xtiaan3 commented Jun 8, 2022

Hi @tommasini - Im not 100% sure what you mean by "put the MetaMask mobile app in the background when you confirm the transaction." We start the transaction on our website which launches the native MetaMask app where you confirm the transaction. From there you are returned to the website where the toast menu pops up with the error, however the transaction still goes through. Here is a video of the process... Any help here would be appreciated.

Mint.mov

@tommasini
Copy link
Contributor

@xtiaan3 Thank you so much for giving more details!
There is one solution already to this problem we will try to release it as soon as we can!

@xtiaan3
Copy link
Author

xtiaan3 commented Jun 11, 2022

@tommasini any ideas we can look at right now for a work around to this issue?

@cortisiko
Copy link
Member

This was fixed in #4060 and will be in v5.3 release

@bandelewskim
Copy link

@cortisiko What's an ETA for v5.3?

@cortisiko
Copy link
Member

@bandelewskim it should be out at the end of next week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants