Add function selector to FunctionDefinition AST JSON

This commit is contained in:
Gaith Hallak
2019-12-16 15:16:54 +03:00
parent 200747e298
commit 371e6a4801
6 changed files with 29 additions and 0 deletions
+5
View File
@@ -3191,6 +3191,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