vishal
vishal

Reputation: 1

sol and js file migration

1_simplestorage.js

Deploying 'SimpleStorage'

*** Deployment Failed ***

"SimpleStorage" hit an invalid opcode while deploying. Try:

Exiting: Review successful transactions manually by checking the transaction hashes above on Etherscan.

Error: *** Deployment Failed ***

"SimpleStorage" hit an invalid opcode while deploying. Try:

at C:\Users\ASUS\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\deployer\src\deployment.js:330:1

Truffle v5.11.5 (core: 5.11.5) Node v16.18.0

https://github.com/kshitijofficial/truffleEng

Upvotes: 0

Views: 88

Answers (1)

amir hossien
amir hossien

Reputation: 1

you should use Solidity 0.8.19.

compilers: {
    solc: {
      version: "0.8.19",    
    }
  },

Upvotes: 0

Related Questions