mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Rename FunctionKind SHA3 to KECCAK256 (as the instruction was renamed in libevmasm)
This commit is contained in:
@@ -2509,7 +2509,7 @@ string FunctionType::richIdentifier() const
|
||||
case Kind::Creation: id += "creation"; break;
|
||||
case Kind::Send: id += "send"; break;
|
||||
case Kind::Transfer: id += "transfer"; break;
|
||||
case Kind::SHA3: id += "sha3"; break;
|
||||
case Kind::KECCAK256: id += "keccak256"; break;
|
||||
case Kind::Selfdestruct: id += "selfdestruct"; break;
|
||||
case Kind::Revert: id += "revert"; break;
|
||||
case Kind::ECRecover: id += "ecrecover"; break;
|
||||
@@ -2894,7 +2894,7 @@ bool FunctionType::isPure() const
|
||||
// FIXME: replace this with m_stateMutability == StateMutability::Pure once
|
||||
// the callgraph analyzer is in place
|
||||
return
|
||||
m_kind == Kind::SHA3 ||
|
||||
m_kind == Kind::KECCAK256 ||
|
||||
m_kind == Kind::ECRecover ||
|
||||
m_kind == Kind::SHA256 ||
|
||||
m_kind == Kind::RIPEMD160 ||
|
||||
@@ -2999,7 +2999,7 @@ bool FunctionType::padArguments() const
|
||||
case Kind::BareDelegateCall:
|
||||
case Kind::SHA256:
|
||||
case Kind::RIPEMD160:
|
||||
case Kind::SHA3:
|
||||
case Kind::KECCAK256:
|
||||
case Kind::ABIEncodePacked:
|
||||
return false;
|
||||
default:
|
||||
|
||||
@@ -899,7 +899,7 @@ public:
|
||||
Creation, ///< external call using CREATE
|
||||
Send, ///< CALL, but without data and gas
|
||||
Transfer, ///< CALL, but without data and throws on error
|
||||
SHA3, ///< SHA3
|
||||
KECCAK256, ///< KECCAK256
|
||||
Selfdestruct, ///< SELFDESTRUCT
|
||||
Revert, ///< REVERT
|
||||
ECRecover, ///< CALL to special contract for ecrecover
|
||||
@@ -1070,7 +1070,7 @@ public:
|
||||
{
|
||||
switch (m_kind)
|
||||
{
|
||||
case FunctionType::Kind::SHA3:
|
||||
case FunctionType::Kind::KECCAK256:
|
||||
case FunctionType::Kind::SHA256:
|
||||
case FunctionType::Kind::RIPEMD160:
|
||||
case FunctionType::Kind::BareCall:
|
||||
|
||||
Reference in New Issue
Block a user