Open zeppelin seems to be appending “-fork” to the networkName when migrating to rinkeby. Output from my console is below.
Migrations dry-run (simulation)
===============================
> Network name: 'rinkeby-fork'
> Network id: 4
> Block gas limit: 10000000 (0x989680)
Environment
openzeppelin cli version 2.8.2
truffle version ^5.1.25
truffle/hdwallet-provider 1.0.35
From my truffle config:
ropsten: {
provider: () => new HDWalletProvider(MNEMONIC, `https://ropsten.infura.io/v3/${INFURA_ID}`),
network_id: 3,
gas: 5500000,
confirmations: 2,
timeoutBlocks: 200,
skipDryRun: true
},
rinkeby: {
provider: () => new HDWalletProvider(MNEMONIC, `https://rinkeby.infura.io/v3/${INFURA_ID}`),
network_id: 4,
gas: 6400000,
gasPrice: 5000000000 // 5GWEI
}
Details
Deploying to ropsten works just fine but I’m unable to deploy to rinkeby. The error I’m getting is “Error: Given network ‘rinkeby-fork’ is not defined in your truffle-config.js file”
Any ideas? I wish I could provide more information but it seems like somethings happening under the hood that I don’t understand. Any and all information would be helpful.