I am using Ethers v6 Contract interface to send a transaction, but when calling contract.method.send it crashes with signature missing r after confirming on metamask.
I am getting the signer and provider as described in the docs.
Expected Behavior
The contract.method.send should return a valid signature.
Steps To Reproduce
import { ethers } from 'ethers'
import { useConnectWallet } from '@web3-onboard/react'
import ERC20ABI from '@/constants/abi/ERC20.json'
const Test = () => {
const [{ wallet }] = useConnectWallet()
async function fun() {
if (wallet?.provider) {
const ethersProvider = new ethers.BrowserProvider(wallet.provider, 'any')
const signer = await ethersProvider.getSigner()
const contract = new ethers.Contract(
'0xca813266889e0FD141dF48B85294855616015fA4',
ERC20ABI,
signer
)
const txn = await contract.approve.send(
'0x9E3feC2E3AEc12572242dd1376BEd5E1F5bb8200',
1
)
const receipt = await txn.wait()
console.log(receipt)
}
}
return <button onClick={fun}></button>
}
export default Test
[X] If this is a build issue, I have included my build config. If this is a runtime issue, I have included reproduction steps and/or a Minimal, Reproducible Example.
Current Behavior
I am using Ethers v6 Contract interface to send a transaction, but when calling contract.method.send it crashes with signature missing r after confirming on metamask.
I am getting the signer and provider as described in the docs.
Expected Behavior
The contract.method.send should return a valid signature.
Steps To Reproduce
What package is effected by this issue?
@web3-onboard/gnosis
Is this a build or a runtime issue?
Runtime
Package Version
2.1.10
Node Version
16.20
What browsers are you seeing the problem on?
Chrome
Relevant log output
Anything else?
No response
Sanity Check