I’m trying to deploy my smart contract to ropsten network using infura. Compile was successful but getting error while deploying migrate contract.
Error:
“Migrations” – only replay-protected (EIP-155) transactions allowed over RPC.
my config.js file code is like this:
ropsten: {
provider: () =>
new HDWalletProvider(
MNEMONIC,
"https://ropsten.infura.io/v3/d4ebf0402674482bacfe7e4d86925a78"
),
network_id: 3, // Ropsten's id
gas: 5500000, // Ropsten has a lower block limit than mainnet
confirmations: 2, // # of confs to wait between deployments. (default: 0)
timeoutBlocks: 200, // # of blocks before a deployment times out (minimum/default: 50)
skipDryRun: true, // Skip dry run before migrations? (default: false for public nets )
},
This has been causing issue with truffle migrates and oz deployements as well. I believe either infura needs to run nodes with " --rpc.allow-unprotected-txs" option on their nodes or would be better if there would be a way for truffle or oz to send tx with chain id’s.