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

ProviderError: the method has been deprecated: eth_accounts #4732

Open
jwbda opened this issue May 17, 2024 · 0 comments
Open

ProviderError: the method has been deprecated: eth_accounts #4732

jwbda opened this issue May 17, 2024 · 0 comments
Assignees
Labels
investigate Under investigation and may be a bug. v6 Issues regarding v6

Comments

@jwbda
Copy link

jwbda commented May 17, 2024

Ethers Version

6.12.0

Search Terms

ProviderError: the method has been deprecated: ethaccounts

Describe the Problem

I use the following link to test solidity contract in bsctest net, but show the error bellow.

links from chainlist and official bsc testnet link:

      url: "https://data-seed-prebsc-1-s1.binance.org:8545/",
      url: "https://endpoints.omniatech.io/v1/bsc/testnet/public",

Code Snippet

contract G {
    event Message(uint a);
    constructor() public payable {
        emit Message(111111);
    }
    function a() public payable {}
    receive() external payable {
        // console.log(">>> run in receive");
        emit Message(66666);
        emit Message(66666);
    }
    function gb() public {
        // return block.timestamp;
        uint aUint = 7777777;
        emit Message(aUint);
    }
}

// deployment
    const amount = hre.ethers.parseEther("1");
    const G = await hre.ethers.getContractFactory("G");
    const g = await G.deploy({ value: amount });
    await g.waitForDeployment();

Errors

An unexpected error occurred:

ProviderError: the method has been deprecated: eth_accounts
    at HttpProvider.request (/test/node_modules/.pnpm/hardhat@2.22.3_bufferutil@4.0.8_ts-node@10.9.2@types+node@20.12.7_typescript@5.4.5typescri_xmbdaxrqyjkegdjiphb3ihp5v4/node_modules/hardhat/src/internal/core/providers/http.ts:90:21)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async getSigners (/test/node_modules/.pnpm/@nomicfoundation+hardhat-ethers@3.0.5_ethers@6.12.0_bufferutil@4.0.8_utf-8-validate@5.0.10h_r3wjavukgrjxmtwzlpvhibfct4/node_modules/@nomicfoundation/hardhat-ethers/src/internal/helpers.ts:43:30)
    at async getContractFactoryByAbiAndBytecode (/test/node_modules/.pnpm/@nomicfoundation+hardhat-ethers@3.0.5_ethers@6.12.0_bufferutil@4.0.8_utf-8-validate@5.0.10h_r3wjavukgrjxmtwzlpvhibfct4/node_modules/@nomicfoundation/hardhat-ethers/src/internal/helpers.ts:305:21)
    at async SimpleTaskDefinition.action (/test/tasks/localTask.ts:175:15)
    at async Environment.runTaskDefinition (/test/node_modules/.pnpm/hardhat@2.22.3_bufferutil@4.0.8_ts-node@10.9.2@types+node@20.12.7_typescript@5.4.5typescrixmbdaxrqyjkegdjiphb3ihp5v4/node_modules/hardhat/src/internal/core/runtime-environment.ts:359:14)
    at async Environment.run (/test/node_modules/.pnpm/hardhat@2.22.3_bufferutil@4.0.8_ts-node@10.9.2@types+node@20.12.7typescript@5.4.5__typescri_xmbdaxrqyjkegdjiphb3ihp5v4/node_modules/hardhat/src/internal/core/runtime-environment.ts:192:14)
    at async main (/test/node_modules/.pnpm/hardhat@2.22.3_bufferutil@4.0.8_ts-node@10.9.2@types+node@20.12.7_typescript@5.4.5__typescri_xmbdaxrqyjkegdjiphb3ihp5v4/node_modules/hardhat/src/internal/cli/cli.ts:323:7)
That is all the output of simple deploy contract
@jwbda jwbda added investigate Under investigation and may be a bug. v6 Issues regarding v6 labels May 17, 2024
@jwbda jwbda changed the title ProviderError: the method has been deprecated: ethaccounts ProviderError: the method has been deprecated: eth_accounts May 17, 2024
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

2 participants