mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #7921 from ghallak/func-selector-ast-json
Add function selector to FunctionDefinition AST JSON
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user