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