Encountering an error while running the truffle migration command, despite trying several solutions without success. PS C:\Users\Jatin\OneDrive - nsut.ac.in\Desktop\Truffle\web> truffle migration
Compiling your contracts...
Compiling .\contracts\Migrations.sol Compiling .\contracts\demo.sol Artifacts written to C:\Users\Jatin\OneDrive - nsut.ac.in\Desktop\Truffle\web\build\contracts Compiled successfully using:
- solc: 0.8.20+commit.a1b79de6.Emscripten.clang
Starting migrations...
Network name: 'development' Network id: 5777 Block gas limit: 6721975 (0x6691b7)
1_initial_migration copy.js
Deploying 'Migrations'
*** Deployment Failed ***
"Migrations" hit an invalid opcode while deploying. Try:
- Verifying that your constructor params satisfy all assert conditions.
- Verifying your constructor code doesn't access an array out of bounds.
- Adding reason strings to your assert statements.
Exiting: Review successful transactions manually by checking the transaction hashes above on Etherscan.
Error: *** Deployment Failed ***
"Migrations" hit an invalid opcode while deploying. Try:
- Verifying that your constructor params satisfy all assert conditions.
- Verifying your constructor code doesn't access an array out of bounds.
- Adding reason strings to your assert statements.
at C:\Users\Jatin\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\deployer\src\deployment.js:330:1
Truffle v5.9.3 (core: 5.9.3) Node v18.16.0
Despite attempting multiple solutions, the issue remains unresolved.