I use ethers to interact with solidity contract. I would like to execute multiple transactions at the same time. To do that I know I have to define noonce that would be +1 for each next transaction. I know how to do that when I do
await signer.sendTransaction()
but how can I execute multiple transactions with custom noonce when I create Contract object and execute function on it? I tried
contract.methodName(methodParams, {
gasLimit: gasLimit,
gasPrice,
value: ethers.utils.parseEther(
"0.01"
),
noonce: nextNoonce
})
but it doesn't work and I get error cannot override "noonce". How can I define it here?