Merge pull request #7921 from ghallak/func-selector-ast-json

Add function selector to FunctionDefinition AST JSON
This commit is contained in:
chriseth
2019-12-16 14:07:35 +01:00
committed by GitHub
50 changed files with 87 additions and 1 deletions
+5
View File
@@ -3174,6 +3174,11 @@ u256 FunctionType::externalIdentifier() const
return FixedHash<4>::Arith(FixedHash<4>(dev::keccak256(externalSignature())));
}
string FunctionType::externalIdentifierHex() const
{
return FixedHash<4>(dev::keccak256(externalSignature())).hex();
}
bool FunctionType::isPure() const
{
// TODO: replace this with m_stateMutability == StateMutability::Pure once