mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add constantinople.
This commit is contained in:
parent
7171ac0124
commit
4ce0e7775d
@ -45,6 +45,7 @@ public:
|
|||||||
static EVMVersion tangerineWhistle() { return {Version::TangerineWhistle}; }
|
static EVMVersion tangerineWhistle() { return {Version::TangerineWhistle}; }
|
||||||
static EVMVersion spuriousDragon() { return {Version::SpuriousDragon}; }
|
static EVMVersion spuriousDragon() { return {Version::SpuriousDragon}; }
|
||||||
static EVMVersion byzantium() { return {Version::Byzantium}; }
|
static EVMVersion byzantium() { return {Version::Byzantium}; }
|
||||||
|
static EVMVersion constantinople() { return {Version::Constantinople}; }
|
||||||
|
|
||||||
static boost::optional<EVMVersion> fromString(std::string const& _version)
|
static boost::optional<EVMVersion> fromString(std::string const& _version)
|
||||||
{
|
{
|
||||||
@ -61,10 +62,11 @@ public:
|
|||||||
{
|
{
|
||||||
switch (m_version)
|
switch (m_version)
|
||||||
{
|
{
|
||||||
case Version::Byzantium: return "byzantium";
|
case Version::Homestead: return "homestead";
|
||||||
case Version::TangerineWhistle: return "tangerineWhistle";
|
case Version::TangerineWhistle: return "tangerineWhistle";
|
||||||
case Version::SpuriousDragon: return "spuriousDragon";
|
case Version::SpuriousDragon: return "spuriousDragon";
|
||||||
case Version::Homestead: return "homestead";
|
case Version::Byzantium: return "byzantium";
|
||||||
|
case Version::Constantinople: return "constantinople";
|
||||||
}
|
}
|
||||||
return "INVALID";
|
return "INVALID";
|
||||||
}
|
}
|
||||||
@ -78,7 +80,7 @@ public:
|
|||||||
bool canOverchargeGasForCall() const { return *this >= tangerineWhistle(); }
|
bool canOverchargeGasForCall() const { return *this >= tangerineWhistle(); }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
enum class Version { Homestead, TangerineWhistle, SpuriousDragon, Byzantium };
|
enum class Version { Homestead, TangerineWhistle, SpuriousDragon, Byzantium, Constantinople };
|
||||||
|
|
||||||
EVMVersion(Version _version): m_version(_version) {}
|
EVMVersion(Version _version): m_version(_version) {}
|
||||||
|
|
||||||
|
@ -539,7 +539,7 @@ Allowed options)",
|
|||||||
(
|
(
|
||||||
g_strEVMVersion.c_str(),
|
g_strEVMVersion.c_str(),
|
||||||
po::value<string>()->value_name("version"),
|
po::value<string>()->value_name("version"),
|
||||||
"Select desired EVM version. Either homestead, tangerineWhistle, spuriousDragon or byzantium (default)."
|
"Select desired EVM version. Either homestead, tangerineWhistle, spuriousDragon, byzantium (default) or constantinople."
|
||||||
)
|
)
|
||||||
(g_argOptimize.c_str(), "Enable bytecode optimizer.")
|
(g_argOptimize.c_str(), "Enable bytecode optimizer.")
|
||||||
(
|
(
|
||||||
|
Loading…
Reference in New Issue
Block a user