So I deploy my contract on bsc testnet and it all goes without issue. Deploying to mainnet (after changing only the V2 router address), and Migrations.sol is good, the library contract deploys, links to main contract, but then fails deploying the main. I believe it's just something wrong in truffle-config.js since that's the only thing different.
Aug 11, 2021, 4:37 AM
Does this look wrong in any way to anybody?
bsc: {
provider: () => new HDWalletProvider(mnemonic, https://bsc-dataseed1.binance.org),
network_id: 56,
gas: 20000000,
gasPrice: 10000000000, // 10 Gwei
},
provider: () => new HDWalletProvider(mnemonic, https://bsc-dataseed1.binance.org),
network_id: 56,
gas: 20000000,
gasPrice: 10000000000, // 10 Gwei
},
Aug 11, 2021, 4:43 AM
What's the error message? And do you have funds in your account in mainnet
Aug 11, 2021, 4:52 AM
"AnBNB" hit a require or revert statement somewhere in its constructor. Try:
* Verifying that your constructor params satisfy all require conditions.
* Adding reason strings to your require statements.
* Verifying that your constructor params satisfy all require conditions.
* Adding reason strings to your require statements.
0.23 bnb in mainnet, should be plenty
less than 0.09 to deploy on testnet
Nevermind, got it working.....thank you
Aug 11, 2021, 5:07 AM
sure
Aug 11, 2021, 6:15 AM