dappuniversity / election

A Decentralized Ethereum Voting Application Tutorial
566 stars 507 forks source link

truffle migrate #32

Open kmmr12 opened 4 years ago

kmmr12 commented 4 years ago

Hi I am working on election Dapp after downloading the update. After running the truffle migrate --reset and I got the message.

Error: Truffle is currently using solc 0.5.16, but one or more of your contracts specify "pragma solidity 0.4.20". Please update your truffle config or pragma statement(s). (See https://truffleframework.com/docs/truffle/reference/configuration#compiler-configuration for information on configuring Truffle to use a specific solc compiler version.)

Compilation failed. See above. at Object.compile (/usr/local/lib/node_modules/truffle/build/webpack:/packages/workflow-compile/legacy/index.js:80:1) Truffle v5.1.11 (core: 5.1.11) Node v12.14.1 Apparently the Truffle update is conflicting with the code. Any way to fix this? I tried changing the eversion on the election.sol file but was unable to move forward with the step after doing so.

kudarukuni commented 1 year ago

me too please shre solution if youfixed this

kudarukuni commented 1 year ago

me too please shre solution if youfixed this

kudarukuni commented 1 year ago

me too please shre solution if youfixed this