-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
ProviderError: the method has been deprecated: eth_accounts #5572
Comments
Taking a look at this, we think we should guard against the deprecation of the |
Is there a workaround for this? |
Erigon now responds that `eth_accounts` is deprecated. Instead of crashing we now return an empty set of accounts, the same as if running against mainnet. Fixes #5572.
Erigon now responds that `eth_accounts` is deprecated when we make an RPC call. Instead of erroring we now return an empty set of accounts from `getSigners` if `eth_accounts` is deprecated. Fixes #5572.
Erigon now responds that `eth_accounts` is deprecated when we make an RPC call. Instead of erroring we now return an empty set of accounts from `getSigners` if `eth_accounts` is deprecated. Fixes #5572.
This has been fixed and released as part of |
Yes. Just supply the signer when calling functions that interact with the chain. It's only when the signer is not supplied that eth_accounts was used to lookup the accounts. |
|
Yup, this worked. Thanks ^_^ |
Version of Hardhat
2.22.7
What happened?
I am not able to deploy my hardhat contracts when using newer providers.
Running the following code:
With command:
npx hardhat --network erigon run scripts/test.ts
Produces this error:
This is the code in hardhat-ethers from the stack (helpers.ts). This is called all the time by high level functions such as ethers.getContractFactory()... :
My provider is a local instance of Erigon. I tried using Erigon 3 and 2.60.0 and both produced the above error.
On the Erigon side I see this error:
WARN[08-03|21:48:26.995] [rpc] served conn=10.0.0.74:60977 method=eth_accounts reqid=2 t=31.49µs err="the method has been deprecated: eth_accounts"
Some articles:
https://geth.ethereum.org/docs/interacting-with-geth/rpc/ns-personal
https://github.com/ethereum/go-ethereum/releases/tag/v1.11.0
Geth is also getting rid of these "personal" methods as well.
Thank you.
Minimal reproduction steps
Run the below code against Geth or Erigon without api personal defined.
Search terms
erigon personal eth_accounts deprecated
The text was updated successfully, but these errors were encountered: