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

Missing r argument after submit transaction in metamask #4723

Open
dino19981 opened this issue May 3, 2024 · 2 comments
Open

Missing r argument after submit transaction in metamask #4723

dino19981 opened this issue May 3, 2024 · 2 comments
Assignees
Labels
investigate Under investigation and may be a bug. v6 Issues regarding v6

Comments

@dino19981
Copy link

dino19981 commented May 3, 2024

Ethers Version

6.9.0

Search Terms

No response

Describe the Problem

After submit transaction in metamask in console i have a error (screenshot) and infinity loading because this error only in console and don't go in catch block.
This error is due to the last update of the metamask, but why i can't I handle the error that is shown in the console? the catch block does not catch this error
Inkederror2_LI

Code Snippet

const provider = new ethers.BrowserProvider((window as any).ethereum);
const signer = await provider.getSigner();
const sender = await signer.getAddress();
const contract = new ethers.Contract(contractAddress, abi, signer);
const mintFee = await contract.mintFee();

let options: any = { value: BigInt(mintFee) };
gasLimit = await contract['mint()'].estimateGas(options);
options.gasLimit = gasLimit;
txResponse = await contract['mint()'](options) (infinity loop and don`t throw error when r argument missing)

Contract ABI

No response

Errors

TypeError: missing r (argument="signature", ...)

Environment

Browser (Chrome, Safari, etc)

Environment (Other)

No response

@dino19981 dino19981 added investigate Under investigation and may be a bug. v6 Issues regarding v6 labels May 3, 2024
@hakikicode
Copy link

ones provider injected

@dino19981
Copy link
Author

Fixed it if update ethers to latest version (v 6.12.1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
investigate Under investigation and may be a bug. v6 Issues regarding v6
Projects
None yet
Development

No branches or pull requests

3 participants