Truffle: Solo Migrations contract deployment fails and networks object is empty

Created on 28 Jan 2018  路  2Comments  路  Source: trufflesuite/truffle

Issue

Just deploying the standard Migrations contract by itself fails using truffle migrate. I've observed other more complicated cases where the Migration contract hasn't deployed as well.

Steps to Reproduce

Here's a failing test which is a variation of the preceding happy_path test:
https://github.com/trufflesuite/truffle/compare/develop...mjhm:solo_migration_deploy_bug

Please provide the shortest amount of steps to reproduce your issue:

Merge my branch, and run mocha test/scenarios/happy_path/

Expected Behavior

Expect test to pass, and also expect the resulting Migrations.json artifacts file to have a non empty networks object.

Actual Results

Test fails with:

Error: Migrations has not been deployed to detected network (network/artifact mismatch)

and Migrations.json has networks: {}

Environment

  • Operating System: MacOS 10.3
  • Truffle version: 4.0.5
  • Ethereum client: ganache-cli
  • node version: 8.9.3
  • npm version: 5.6.0
Migrations

Most helpful comment

I'm having the same issue, network object is empty in MyContract.json, and is failing with: has no network configuration for its current network id

All 2 comments

I'm having the same issue, network object is empty in MyContract.json, and is failing with: has no network configuration for its current network id

Closing as I believe this issue has been resolved. If I'm mistaken please feel free to re-open this issue!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Katsu1991 picture Katsu1991  路  3Comments

TOMOAKI12345 picture TOMOAKI12345  路  3Comments

rjl493456442 picture rjl493456442  路  4Comments

tcurdt picture tcurdt  路  3Comments

rstormsf picture rstormsf  路  3Comments