Open daochild opened 1 month ago
2.22.6
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" }
npx hardhat run ./scripts/deply.ts --network "amoy"
No response
Hey @daochild , could you give details?
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)
Configs
Minimal reproduction steps
npx hardhat run ./scripts/deply.ts --network "amoy"
Search terms
No response