Skip to content

Conversation

@v-sreekesh
Copy link
Contributor

@v-sreekesh v-sreekesh commented Aug 10, 2021

changed public to external for the functions

Closes #11768

function winnerName() external view
returns (bytes32 winnerName_)
{
winnerName_ = proposals[winningProposal()].name;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

winningProposal is used here. So that has to be made public. Here's the CI check that failed: https://app.circleci.com/pipelines/github/ethereum/solidity/17880/workflows/1a6d2776-037e-462b-a52c-a88feed5f637/jobs/799349

Could you please fix it in this PR / branch itself? We have a section on workflow for pull requests that may be relevant here: https://docs.soliditylang.org/en/v0.8.6/contributing.html?highlight=evmone#workflow-for-pull-requests

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok i will use the same PR request to make new changes

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. You can ping me by using "re request" review button next to the Reviewers list.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you also update other files from docs/examples/*.rst?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Of course i will update the others as well

@hrkrshnn
Copy link
Contributor

Generally looks good. I'll take another look after the rest of the examples are changed. It would be nice to squash the commits into a single one before we can merge it. But I can also do it at the end, if you aren't familiar with this.

@chriseth
Copy link
Contributor

Please make sure that the explanation before and after the code is still OK with the code.

@hrkrshnn
Copy link
Contributor

Will squash the commits now.

changed public to external for the functions
@hrkrshnn hrkrshnn force-pushed the v-sreekesh-external-fix-voting branch from e99aaf7 to 9b9e52e Compare August 12, 2021 14:25
Copy link
Contributor

@hrkrshnn hrkrshnn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@hrkrshnn hrkrshnn enabled auto-merge August 12, 2021 14:30
@hrkrshnn
Copy link
Contributor

@v-sreekesh Thanks for the PR! The CI seems to be broken now. Will merge once it gets fixed.

@chriseth
Copy link
Contributor

It's only the windows build that is failing. Will force-merge this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[DOCS] Change examples from public to external whenever possible

3 participants