aboutsummaryrefslogtreecommitdiffstats
path: root/AST.cpp
diff options
context:
space:
mode:
authorLiana Husikyan <liana@ethdev.com>2015-03-27 20:28:32 +0800
committerLiana Husikyan <liana@ethdev.com>2015-03-27 20:28:32 +0800
commita3d829d074859d748f1fd392acb8b5883f646e61 (patch)
tree83297cd3280973d788bc366bb04bf83c3ef339b0 /AST.cpp
parentb1ca27ea93907dc500d0b84298f5d63a9d4a7c1d (diff)
downloaddexon-solidity-a3d829d074859d748f1fd392acb8b5883f646e61.tar.gz
dexon-solidity-a3d829d074859d748f1fd392acb8b5883f646e61.tar.zst
dexon-solidity-a3d829d074859d748f1fd392acb8b5883f646e61.zip
added externalTypes function to functionType
removed flag for externalSigniture
Diffstat (limited to 'AST.cpp')
-rw-r--r--AST.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/AST.cpp b/AST.cpp
index 461c3d0c..1736469e 100644
--- a/AST.cpp
+++ b/AST.cpp
@@ -192,7 +192,7 @@ vector<pair<FixedHash<4>, FunctionTypePointer>> const& ContractDefinition::getIn
if (functionsSeen.count(f->getName()) == 0 && f->isPartOfExternalInterface())
{
functionsSeen.insert(f->getName());
- FixedHash<4> hash(dev::sha3(f->externalSignature(true)));
+ FixedHash<4> hash(dev::sha3(f->externalSignature()));
m_interfaceFunctionList->push_back(make_pair(hash, make_shared<FunctionType>(*f, false)));
}
@@ -202,7 +202,7 @@ vector<pair<FixedHash<4>, FunctionTypePointer>> const& ContractDefinition::getIn
FunctionType ftype(*v);
solAssert(v->getType().get(), "");
functionsSeen.insert(v->getName());
- FixedHash<4> hash(dev::sha3(ftype.externalSignature(true, v->getName())));
+ FixedHash<4> hash(dev::sha3(ftype.externalSignature(v->getName())));
m_interfaceFunctionList->push_back(make_pair(hash, make_shared<FunctionType>(*v)));
}
}
@@ -320,9 +320,9 @@ void FunctionDefinition::checkTypeRequirements()
m_body->checkTypeRequirements();
}
-string FunctionDefinition::externalSignature(bool isExternalCall) const
+string FunctionDefinition::externalSignature() const
{
- return FunctionType(*this).externalSignature(isExternalCall, getName());
+ return FunctionType(*this).externalSignature(getName());
}
bool VariableDeclaration::isLValue() const