You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using geth to build a private chain and then deploy a smart contract using remix. But when I deploy and call some functions in remix this error comes out"The EVM version used by the selected environment is not compatible with the compiler EVM version." with some "invalid opcode" error. I prefer using geth of version I mentioned below. Can anybody tell me which version of solc is compatible with this version of geth? Or how to solve this problem?
Environment
Compiler version: 0.8.18
Target EVM version (as per compiler settings): geth 1.10.4
Framework/IDE (e.g. Truffle or Remix): remix
EVM execution environment / backend / blockchain client: both default and paris environment failed.
Operating system: windows
Steps to Reproduce
// Some *minimal* Solidity source code to reproduce the bug.// This is the file I have tried. It's just a simple test file.// SPDX-License-Identifier: MITpragma solidity^0.8.18;
contractSimpleStorage {
uint256public favoriteNumber;
struct person {
uint256 age;
string name;
}
person[] public array_of_people;
// type is person[], visibility is public and name is "array_of_peoplemapping(string=>uint256) public findnum;
function addperson(stringmemory_name, uint256favnum) public {
array_of_people.push(person(favnum,_name));
findnum[_name] = favnum;
}
function store(uint256_favoriteNumber) public {
favoriteNumber = _favoriteNumber;
}
function retrive() viewpublicreturns (uint256) {
return favoriteNumber;
}
}
The text was updated successfully, but these errors were encountered:
Description
I'm using geth to build a private chain and then deploy a smart contract using remix. But when I deploy and call some functions in remix this error comes out"The EVM version used by the selected environment is not compatible with the compiler EVM version." with some "invalid opcode" error. I prefer using geth of version I mentioned below. Can anybody tell me which version of solc is compatible with this version of geth? Or how to solve this problem?
Environment
Steps to Reproduce
The text was updated successfully, but these errors were encountered: