truffle migrate --network bsc_testnet
Error: You must specify a network_id in your 'bsc_testnet' configuration in order to use this network. at Object.validateNetworkConfig (C:\Users\user\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\environment\environment.js:136:1) at Object.detect (C:\Users\user\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\environment\environment.js:16:1) at Object.module.exports [as run] (C:\Users\user\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\core\lib\commands\migrate\run.js:19:1) at runCommand (C:\Users\user\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\core\lib\command-utils.js:297:1) Truffle v5.7.7 (core: 5.7.7) Node v16.14.2
I've done so much to fix this. I've tried to uninstall, reinstall. I've tried to delete build/contracts. I've tried to mess with truffle-config in multiple ways. I've tried to deploy and migrate. I've tried to build the truffle config in many ways.
I don't know what I should do to fix this issue.
Here is my bsc_testnet network in the truffle config.
..
//BINANCE SMART CHAIN TESTNET
bsc_test: {
provider: () =>
new HDWalletProvider(
process.env.BSC_SEED_PHRASE || process.env.BSC_PRIVATE_KEY,
`https://data-seed-prebsc-1-s1.binance.org:8545`
),
network_id: 97,
confirmations: 2,
timeoutBlocks: 500,
skipDryRun: true,
},
..
I have contracts to test on chain, yet I am unable to deploy anything at all due to this network issue. I did deploy on ganache local, that worked perfectly. Pretty confused as to what is happening.