Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Truffle migrate cannot handle a network ID different from the chain ID #3961

Closed
shoenseiwaso opened this issue Apr 2, 2021 · 12 comments
Closed

Comments

@shoenseiwaso
Copy link

shoenseiwaso commented Apr 2, 2021

Issue

@eggplantzzz @gnidan I think we found another corner case: no version of Truffle works if the chain ID is different from the network ID (i.e., I tried earlier versions than 5.3.0 as well).

Related/possibly related: #3935, #3957, #3953, #3949, #3946

Steps to Reproduce

Follow the steps in the README in this repo. Note that it has been updated for this issue since #3935 - please do a git pull if you had previously cloned it.
https://github.com/curvegrid/truffle-eip155-issues

Expected Behavior

Migration completes successfully.

Actual Results

1_initial_migration.js
======================

   Deploying 'Migrations'
   ----------------------

Error:  *** Deployment Failed ***

"Migrations" -- invalid sender.

Environment

  • Operating System: macOS 10.15.7
  • Ethereum client: geth 1.10.1
  • Truffle version (truffle version): Truffle v5.3.0 (core: 5.3.0)
  • node version (node --version): v15.11.0
  • npm version (npm --version): 7.0.14
@dasconnor
Copy link

This is a problem for compatibility with other EVM-based chains that use Truffle. I'm getting reports from users that the latest EIP-155 change broke compatibility with Avalanche and our Fuji testnet.

@Iffay3020
Copy link

Iffay3020 commented May 8, 2021

Same Problem here but I get following message:

`
1_initial_migration.js

Deploying 'Migrations'

Error: *** Deployment Failed ***

"Migrations" -- Wrong chainId.

at /usr/local/lib/node_modules/truffle/build/webpack:/packages/deployer/src/deployment.js:365:1
at process._tickCallback (internal/process/next_tick.js:68:7)

`

@HankHoneymoon
Copy link

Same Problem here but I get following message:

`

1_initial_migration.js

Deploying 'Migrations'

Error: *** Deployment Failed ***

"Migrations" -- Wrong chainId.

at /usr/local/lib/node_modules/truffle/build/webpack:/packages/deployer/src/deployment.js:365:1
at process._tickCallback (internal/process/next_tick.js:68:7)

`

Having the same problem. Definitely using the right chain ID (kovan:42) and tried both Aave v.1 and v.2 lendingpooladdressprovider addresses, but no dice.

@HankHoneymoon
Copy link

#3946

HD-wallet seems to be an issue.

@Iffay3020
Copy link

#3946

HD-wallet seems to be an issue.

Hmpf.. Im trying to migrate a contract since 3 days but not working..

@bitcoinbrisbane
Copy link

#3946
HD-wallet seems to be an issue.

Hmpf.. Im trying to migrate a contract since 3 days but not working..

Yeah same

@eggplantzzz
Copy link
Contributor

There is a fix in this PR

@eggplantzzz
Copy link
Contributor

@truffle/hdwallet-provider version 1.4.0 has just been released and I think it will solve this issue. Can you try it out and confirm or deny that it fixes the problem? Thanks!

@bitcoinbrisbane
Copy link

@truffle/hdwallet-provider version 1.4.0 has just been released and I think it will solve this issue. Can you try it out and confirm or deny that it fixes the problem? Thanks!

I can test today

@shoenseiwaso
Copy link
Author

@truffle/hdwallet-provider version 1.4.0 has just been released and I think it will solve this issue. Can you try it out and confirm or deny that it fixes the problem? Thanks!

Confirmed fixed using the repro repo, thanks!

@slhodak
Copy link

slhodak commented May 12, 2021

#4019 fixed the 'wrong chainId" issue for me. Thank you very much!

@eggplantzzz
Copy link
Contributor

Glad to hear it!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

7 participants