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: pending state is not available for Taiko Mainnet #6076

Open
airled opened this issue Dec 25, 2024 · 0 comments
Open

ProviderError: pending state is not available for Taiko Mainnet #6076

airled opened this issue Dec 25, 2024 · 0 comments
Assignees

Comments

@airled
Copy link

airled commented Dec 25, 2024

Version of Hardhat

2.22.4

What happened?

Seems like something wrong when Hardhat tries to deploy a contract to the Taiko mainnet. When I try to call await hre.ethers.deployContract(), Hardhat raises with the error:

ProviderError: pending state is not available
    at HttpProvider.request (node_modules/hardhat/src/internal/core/providers/http.ts:90:21)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at HardhatEthersProvider.estimateGas (node_modules/@nomicfoundation/hardhat-ethers/src/internal/hardhat-ethers-provider.ts:237:27)
    at node_modules/@nomicfoundation/hardhat-ethers/src/signers.ts:235:35
    at async Promise.all (index 0)
    at HardhatEthersSigner._sendUncheckedTransaction (node_modules/@nomicfoundation/hardhat-ethers/src/signers.ts:256:7)
    at HardhatEthersSigner.sendTransaction (node_modules/@nomicfoundation/hardhat-ethers/src/signers.ts:125:18)
    at ContractFactory.deploy (node_modules/ethers/src.ts/contract/factory.ts:111:24)
    at main (scripts/deploy.js:59:18)

There are no problems with deployment exactly the same contract to other chains.
I tried different rpcs, also private ones, but no luck. Also Remix IDE has successfully deployed the contract.

Minimal reproduction steps

Create an empty contract and try to deploy the contract to the Taiko Mainnet.
hardhat.config.js:

require("@nomicfoundation/hardhat-toolbox");
require("dotenv").config();

/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
  solidity: {
    compilers: [
      {
        version: "0.8.26",
        settings: {
          optimizer: {
            enabled: true,
            runs: 1000,
          },
        },
      },
    ],
  },
  networks: {
    taiko: {
      url: "https://taiko.drpc.org",
      accounts: [process.env.WALLET_PRIVATE_KEY],
    }
  }
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Backlog
Development

No branches or pull requests

2 participants