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

Outdated solidity version in migration.sol #931

Closed
Aniket-Engg opened this issue May 2, 2018 · 5 comments
Closed

Outdated solidity version in migration.sol #931

Aniket-Engg opened this issue May 2, 2018 · 5 comments
Labels

Comments

@Aniket-Engg
Copy link

Issue/Feature Request

truffle init setup project with a file named migration.sol with solidity version 0.4.17

Steps to Reproduce

truffle init

Expected Behavior

Migration.sol file should have updated version of Solidity

Actual Results

It dispaly Solidity version as 0.4.17

Environment

  • Operating System: Ubuntu 16.04
  • Truffle version (truffle version): 4.1.5
  • node version (node --version): 8.9.3
  • npm version (npm --version): 5.6.0
@cgewecke
Copy link
Contributor

cgewecke commented May 2, 2018

@Aniket-Engg Thanks for raising this. Unfortunately updating the Migrations.sol to latest solc would be a breaking change for users running truffle init with earlier versions of truffle. The template for a bare-box project sits here and is strongly decoupled from truffle itself. At present the best work-around is to update that file following the warnings solc provides - there's just a couple things.

We probably need to implement truffle-core 117 to manage this requirement appropriately. Another approach that's been discussed is removing Migrations.sol from bare projects altogether and having truffle manage that feature 'magically' behind the scenes.

@Aniket-Engg
Copy link
Author

@cgewecke ok, I got it. Looks like we can have a permanent solution later in future, till then we can go with the updating file manually.

@Aniket-Engg
Copy link
Author

Latest truffle is putting Migrations.sol with version 0.4.23. Thanks for considering the update.

@stale
Copy link

stale bot commented Nov 8, 2018

Thank you for raising this issue! It has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. If you would like to keep this issue open, please respond with information about the current state of this problem.

@stale stale bot added the stale label Nov 8, 2018
@stale
Copy link

stale bot commented Nov 15, 2018

There has been no new activity on this issue since it was marked as stale 7 days ago, so it is being automatically closed. If you'd like help with this or a different problem, please open a new issue. Thanks!

@stale stale bot closed this as completed Nov 15, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants