Looks like Ive got a similar problem as
Were migrating into hardhat. Im using xdai if it matters.
local deploys work every time.
mainnet deploys get to same place before timing out each time.
The deploy script deploys some other contracts as part of the project, 2 of them also upgradable, and pre deployed 4 libraries, which are given to the third contract which fails with a txhash that doesnt exist....
const DC = await ethers.getContractFactory("DC", {
libraries: {
a: a.address,
b: b.address,
c: c.address,
d: d.address,
},
});
const dC = await upgrades.deployProxy(
DC,
[init1, init2, init3, init4],
{ unsafeAllowCustomTypes: true, unsafeAllowLinkedLibraries: true }
);// <-time outs here
You are using the `unsafeAllowLinkedLibraries` flag to include external libraries.
Make sure you have manually checked that the linked libraries are upgrade safe.
TransactionMinedTimeout [Error]: Timed out waiting for transaction 0x2035336a41b178ec16035e93621acd3f0107ec20e877ff4fc2215d909c138f49
at Object.waitAndValidateDeployment (/contracts/eth/node_modules/@openzeppelin/upgrades-core/src/deployment.ts:61:15)
at fetchOrDeployGeneric (/contracts/eth/node_modules/@openzeppelin/upgrades-core/src/impl-store.ts:42:5)
at Proxy.deployProxy (/contracts/eth/node_modules/@openzeppelin/hardhat-upgrades/src/deploy-proxy.ts:45:18) {
deployment: {
address: '0xE86FB472D997bD489EEd806f6b138518d5473De0',
txHash: '0x2035336a41b178ec16035e93621acd3f0107ec20e877ff4fc2215d909c138f49',
layout: { storage: [Array], types: [Object] }
}
}
"@nomiclabs/hardhat-ethers": "^2.0.1",
"@nomiclabs/hardhat-waffle": "^2.0.1",
"@openzeppelin/contracts-upgradeable": "^3.3.0",
"@openzeppelin/hardhat-upgrades": "^1.5.0",
"hardhat": "^2.0.7",
"hardhat-typechain": "^0.3.4",