mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Make contract function types external
This commit is contained in:
parent
bbd451dd16
commit
49bdc1571e
@ -228,7 +228,7 @@ string FunctionGenerator::visit()
|
||||
string name = state->newFunction();
|
||||
state->updateFunction(name);
|
||||
if (!m_freeFunction)
|
||||
visibility = "public";
|
||||
visibility = "external";
|
||||
|
||||
auto inputType = TypeGenerator{state}.type();
|
||||
state->currentFunctionState()->addInput(pair<string, shared_ptr<SolidityType>>("i1", inputType));
|
||||
|
@ -298,9 +298,9 @@ struct FunctionType: SolidityType
|
||||
|
||||
std::string retString = std::string("function ") + "(" + typeString(inputs) + ")";
|
||||
if (outputs.empty())
|
||||
return retString + " public pure";
|
||||
return retString + " external pure";
|
||||
else
|
||||
return retString + " public pure returns (" + typeString(outputs) + ")";
|
||||
return retString + " external pure returns (" + typeString(outputs) + ")";
|
||||
}
|
||||
|
||||
std::vector<std::shared_ptr<SolidityType>> inputs;
|
||||
|
Loading…
Reference in New Issue
Block a user