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

Wait blocks doest work anymore #5518

Closed
daochild opened this issue Jul 13, 2024 · 2 comments
Closed

Wait blocks doest work anymore #5518

daochild opened this issue Jul 13, 2024 · 2 comments
Assignees
Labels
status:needs-more-info There's not enough information to start working on this issue

Comments

@daochild
Copy link

Version of Hardhat

2.22.6

What happened?

Script not wait anymore for tx confirmation and execute next in the list, than throw some error.
If send only one transaction it works correctly)

...

    let tx: ContractTransactionResponse;
    tx = await bulkMarket.initialize(ethers.getAddress(configs.ticketsWindow), ethers.getAddress(configs.boxMarket), ethers.getAddress(configs.boxUnpacker));
    await tx.wait(3);
    console.log('BulkMarket initialized');

    const MINTER_ROLE = await nft.MINTER_ROLE();
    console.log('MINTER_ROLE: ', MINTER_ROLE)
    console.log(unpacker.target)

    await (await box.grantRole(await box.MINTER_ROLE(), boxMarket.target)).wait(3)
    console.log('R3PBox MINTER_ROLE granted to BoxMarket')
    
...

Configs

  "devDependencies": {
    "@nomicfoundation/hardhat-chai-matchers": "^2.0.0",
    "@nomicfoundation/hardhat-ignition": "^0.15.5",
    "@nomicfoundation/hardhat-network-helpers": "1.0.10",
    "@nomicfoundation/hardhat-toolbox": "^5.0.0",
    "@nomicfoundation/ignition-core": "^0.15.5",
    "@nomiclabs/hardhat-solhint": "^3.0.1",
    "@typechain/ethers-v6": "^0.5.1",
    "@typechain/hardhat": "^9.1.0",
    "@types/chai": "4.3.11",
    "@types/mocha": "10.0.6",
    "@types/node": ">=16.0.0",
    "@typescript-eslint/parser": "^6.21.0",
    "@uniswap/v2-core": "^1.0.1",
    "@uniswap/v2-periphery": "^1.1.0-beta.0",
    "chai": "^4.2.0",
    "dotenv": "^16.0.3",
    "ethers": "^6.10.0",
    "hardhat": "^2.22.6",
    "hardhat-gas-reporter": "^1.0.8",
    "hardhat-prettier": "^0.0.1",
    "hardhat-spdx-license-identifier": "^2.0.3",
    "keccak256": "^1.0.6",
    "nyc": "^15.1.0",
    "prettier": "^3.2.5",
    "prettier-plugin-solidity": "^1.3.1",
    "solhint": "^4.1.1",
    "solidity-coverage": "0.8.12",
    "ts-node": "^10.9.2",
    "typechain": "^8.3.2",
    "typechain-target-ethers-v6": "^0.1.0",
    "typescript": "^5.5.3"
  },
  "dependencies": {
    "@chainlink/contracts": "^0.8.0",
    "@metamask/eth-sig-util": "^7.0.1",
    "@nomicfoundation/hardhat-ethers": "^3.0.0",
    "@nomicfoundation/hardhat-ignition-ethers": "^0.15.0",
    "@nomicfoundation/hardhat-verify": "^2.0.0",
    "@openzeppelin/contracts": "^5.0.2",
    "@openzeppelin/contracts-upgradeable": "^5.0.2",
    "@openzeppelin/merkle-tree": "^1.0.6",
    "install-peers": "^1.0.4"
  }

Minimal reproduction steps

npx hardhat run ./scripts/deply.ts --network "amoy"

Search terms

No response

@github-project-automation github-project-automation bot moved this to Backlog in Hardhat Jul 13, 2024
@kanej kanej added status:needs-more-info There's not enough information to start working on this issue and removed status:triaging labels Jul 15, 2024
@kanej
Copy link
Member

kanej commented Jul 15, 2024

Hey @daochild , could you give details?

  • What is the error that is thrown?
  • Has anything changed in your deps, so have you update the Hardhat version or the Ethers version?

@schaable
Copy link
Member

I'm closing this for bookkeeping purposes, but if you can provide the requested details, please let us know, and we’ll reopen it. Thanks!

@schaable schaable closed this as not planned Won't fix, can't repro, duplicate, stale Sep 13, 2024
@github-project-automation github-project-automation bot moved this from Backlog to Done in Hardhat Sep 13, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status:needs-more-info There's not enough information to start working on this issue
Projects
Archived in project
Development

No branches or pull requests

3 participants