"Migrations" -- only replay-protected (EIP-155) transactions allowed over RPC

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 )

},
1 Like

The issue seems to due to the new Geth update , i believe the Infura nodes got updated today with the new update (https://blog.ethereum.org/2021/03/03/geth-v1-10-0/) .

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.

1 Like

Hi @Milan-99 & @dev,

Welcome to the community :wave:

There is an open issue with Truffle for this, see: