Greetings everyone! I'm trying to deploy a dead simple smart contract to BSC mainnet using truffle.
im getting : code: -32603, message: 'ETIMEDOUT',
my config is the following:
bscmainnet: {
provider: () => new HDWalletProvider(
process.env.MNEMONICMETAMASK,
'https://bscrpc.com'
),
network_id: 56,
confirmations: 10,
timeoutBlocks: 200,
skipDryRun: true,
gas: 3000000,
gasPrice: 10000000000,
networkCheckTimeout: 1000000000
}
recently had the same with polygon mainnet...
I'm not having any issues when deploying to the testnet.
Any help would be greatly appreciated. Help out a struggling junior :)

Mar 19, 2022, 2:57 PM
Maybe try a different rpc url?
Mar 19, 2022, 2:58 PM
i've tried several listed here: https://bnbproject.org/#/rpcserver
and havent had luck, some were giving me -32000
Mar 19, 2022, 2:58 PM
Hmm yeah strange.
Mar 19, 2022, 3:01 PM
is it a common practice to deploy with remix copying the abi into your dapp later?
Mar 19, 2022, 3:01 PM
I'm not sure, I always deploy with hardhat, or truffle in the older days
Certainly some people deploy from remix
Mar 19, 2022, 3:02 PM
cool, thanks, ill try again with hardhat but don't understand how that could solve it.
Mar 19, 2022, 3:02 PM
Not sure, it might not. It almost seems like you have network issues or something like that. Are you on VPN or something unstable?
Oh...is that gas price super low? I don't know BSC gas prices
Mar 19, 2022, 3:04 PM
No, I was already aware that network could be the case but its 100mbps strong
Mar 19, 2022, 3:05 PM
Hmm yeah I'm not sure...BSC is all kinds of weird and flaky, it's not surprising to me. Maybe keep trying and it will eventually work.
Mar 19, 2022, 3:09 PM
Is hardhat better that truffle in your opinion Aaron?
Mar 19, 2022, 3:12 PM
I like it better yeah
Mar 19, 2022, 3:13 PM
noted! Thanks for the tip
Mar 19, 2022, 3:13 PM
gave up on truffle and managed to deploy it using remix, all good now. perhaps indeed something with my wifi card or something.
Mar 19, 2022, 4:30 PM

© 2024 Draquery.com All rights reserved.