We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
6.9.2
provider; 'already known'
To reproduce this bug, you'll need a private key with some funds on Linea Goerli. Here's their faucet.
linea-bug.ts
privateKey
import { ethers } from 'ethers' const privateKey = '' // Add private key if (!privateKey) { throw new Error(`No private key found`) } ;(async () => { const provider = new ethers.JsonRpcProvider('https://rpc.goerli.linea.build') const signer = new ethers.Wallet(privateKey, provider) const response = await signer.sendTransaction({ to: ethers.ZeroAddress, data: '0x' + '11'.repeat(11300), }) await response.wait() })()
<path/to/file.ts>
npx ts-node <path/to.file.ts>
No error should be thrown by Ethers.
The transaction succeeds on-chain, but an error is thrown by Ethers:
Error: could not coalesce error (error={ "code": -32000, "message": "already known" }, payload={ "id": 10, "jsonrpc": "2.0", "method": "eth_sendRawTransaction", "params": [ "0x02f92c9382e7043d8" ] }, code=UNKNOWN_ERROR, version=6.9.2) at makeError (/Users/samgoldman/dev/sphinx/packages/plugins/node_modules/ethers/src.ts/utils/errors.ts:694:21) at JsonRpcProvider.getRpcError (/Users/samgoldman/dev/sphinx/packages/plugins/node_modules/ethers/src.ts/providers/provider-jsonrpc.ts:1049:25) at /Users/samgoldman/dev/sphinx/packages/plugins/node_modules/ethers/src.ts/providers/provider-jsonrpc.ts:563:45 at processTicksAndRejections (node:internal/process/task_queues:95:5) { code: 'UNKNOWN_ERROR', error: { code: -32000, message: 'already known' }, payload: { method: 'eth_sendRawTransaction', params: '0x02f92c9382e7043d8423c346008423c3460e8303144894000000000000000000000000000000000000000080b92c2411111111111'... 12832 more characters ], id: 10, jsonrpc: '2.0' }, shortMessage: 'could not coalesce error' }
node.js (v12 or newer)
The text was updated successfully, but these errors were encountered:
ricmoo
No branches or pull requests
Ethers Version
6.9.2
Search Terms
provider; 'already known'
Describe the Problem
Steps to Reproduce
To reproduce this bug, you'll need a private key with some funds on Linea Goerli. Here's their faucet.
linea-bug.ts
.privateKey
variable.<path/to/file.ts>
with your file path:Expected Result
No error should be thrown by Ethers.
Actual Result
The transaction succeeds on-chain, but an error is thrown by Ethers:
Notes
Environment
node.js (v12 or newer)
The text was updated successfully, but these errors were encountered: