MCPcopy Create free account
hub / github.com/argotorg/solidity / setEVMVersion

Method setEVMVersion

libsolidity/interface/CompilerStack.cpp:244–251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

242}
243
244void CompilerStack::setEVMVersion(langutil::EVMVersion _version)
245{
246 solAssert(m_stackState < ParsedAndImported, "Must set EVM version before parsing.");
247 m_evmVersion = _version;
248 // GlobalContext depends on evmVersion since the Cancun hardfork.
249 // Therefore, we reset it whenever we set a new EVM version, ensuring that the context is never reused with a mismatched version.
250 m_globalContext.reset();
251}
252
253void CompilerStack::setEOFVersion(std::optional<uint8_t> _version)
254{

Callers 13

testCompilerMethod · 0.80
compileContractMethod · 0.80
setupCompilerMethod · 0.80
compileMethod · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
runMethod · 0.80
setupCompilerMethod · 0.80
runMethod · 0.80
runMethod · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
compileSolidityMethod · 0.80

Calls 1

resetMethod · 0.45

Tested by 4

runMethod · 0.64
setupCompilerMethod · 0.64
runMethod · 0.64
runMethod · 0.64