Hi everyone , there is invalid opcode (cause of environment solidity version) error for deploying smart contract on ganache , i litely searched for solc config on ganache source and didn't find anything, if anyone know the path of truffle solc on ganache or any other solution, I'll be thankful to share it with me

Jan 21, 2024, 9:29 AM
Push0?
Jan 21, 2024, 10:32 AM
Yes
Jan 21, 2024, 11:18 AM
you need to set EVM version to a previous version where PUSH0 is not there (if the chain you're interacting with doesn't support it, you can't use it :P)
so set your EVM version to paris and retry
Jan 21, 2024, 11:31 AM
Its okay on remix test chains, i want to try it on local ganache
Jan 21, 2024, 11:35 AM
i don't use ganache since years... don't know how to set the evm version there tbh
switch to hardhat or foundry to get the latest tech
Jan 21, 2024, 11:36 AM

© 2024 Draquery.com All rights reserved.