aboutsummaryrefslogtreecommitdiffstats
path: root/AST.cpp
diff options
context:
space:
mode:
authorLiana Husikyan <liana@ethdev.com>2015-03-24 18:11:27 +0800
committerLiana Husikyan <liana@ethdev.com>2015-03-25 20:59:46 +0800
commit9986b072ad471908df4402ef860e58e331035948 (patch)
tree6bf7625fdbfe4f76e655027bdb421f084f6a58df /AST.cpp
parent701b34fbeb1bd08445aad55f82672d35343f5a44 (diff)
downloaddexon-solidity-9986b072ad471908df4402ef860e58e331035948.tar.gz
dexon-solidity-9986b072ad471908df4402ef860e58e331035948.tar.zst
dexon-solidity-9986b072ad471908df4402ef860e58e331035948.zip
renamed externalTypes to externalSignature
Diffstat (limited to 'AST.cpp')
-rw-r--r--AST.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/AST.cpp b/AST.cpp
index 2e24d4f9..9a2c1be0 100644
--- a/AST.cpp
+++ b/AST.cpp
@@ -88,7 +88,7 @@ void ContractDefinition::checkTypeRequirements()
if (hashes.count(hash))
BOOST_THROW_EXCEPTION(createTypeError(
std::string("Function signature hash collision for ") +
- it.second->externalTypes()));
+ it.second->externalSignature()));
hashes.insert(hash);
}
}
@@ -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->externalTypes()));
+ 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.externalTypes(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::externalTypes() const
+string FunctionDefinition::externalSignature() const
{
- return FunctionType(*this).externalTypes(getName());
+ return FunctionType(*this).externalSignature(getName());
}
bool VariableDeclaration::isLValue() const
@@ -430,7 +430,7 @@ void EventDefinition::checkTypeRequirements()
numIndexed++;
if (!var->getType()->canLiveOutsideStorage())
BOOST_THROW_EXCEPTION(var->createTypeError("Type is required to live outside storage."));
- if (!var->getType()->externalType() && getVisibility() >= Visibility::Public)
+ if (!var->getType()->externalType())
BOOST_THROW_EXCEPTION(var->createTypeError("Internal type is not allowed for Events"));
}
if (numIndexed > 3)