mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix bug in function output params
This commit is contained in:
parent
ef29a5e287
commit
46bac2377f
@ -287,10 +287,11 @@ string FunctionGenerator::visit()
|
||||
<< state->currentFunctionState()->params(FunctionState::Params::INPUT)
|
||||
<< " "
|
||||
<< visibility
|
||||
<< " pure"
|
||||
<< " returns"
|
||||
<< state->currentFunctionState()->params(FunctionState::Params::OUTPUT)
|
||||
<< " {}\n";
|
||||
<< " pure";
|
||||
if (!state->currentFunctionState()->outputs.empty())
|
||||
function << " returns"
|
||||
<< state->currentFunctionState()->params(FunctionState::Params::OUTPUT);
|
||||
function << " {}\n";
|
||||
return function.str();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user