New answers tagged

0 votes

"Election" hit an invalid opcode while deploying. truffle migrate

just change your solc version " 0.8.19 ". beacuse 0.8.20 and above version only use mainnet to deploy....
singing. com's user avatar
0 votes

When using truffle command "truffle migrate", previously deployed contracts are re-deployed, is there a way to prevent this?

truffle has these options, that lets you to run just new migrations (not all of them). Maybe it can help you --f <number> Run contracts from a specific migration. The number refers to the ...
Mahdi Karami's user avatar
0 votes

When using truffle command "truffle migrate", previously deployed contracts are re-deployed, is there a way to prevent this?

const AnotherContract = artifacts.require("./AnotherContract.sol"); module.exports = function (deployer) { deployer.deploy(AnotherContract).then(function () { return deployer.deploy(...
Canard Coca's user avatar
0 votes

"Migrations" hit an invalid opcode while deploying on deploy Migrations.sol with Truffle

It seems the new version of ganache GUI(at this moment) does not support 0.8.21 instructions. As the answers said I tried to downgrade the version of Solc. but it didn't work. I found out we should ...
Mahdi Karami's user avatar

Top 50 recent answers are included