Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding storage into the pointer for Voter delegate #2787

Merged
merged 1 commit into from
Aug 24, 2017

Conversation

designium
Copy link
Contributor

Hi,

The example from https://github.com/ethereum/solidity/blob/develop/docs/solidity-by-example.rst is not working.

It keeps giving this error in the Mist program:

 Could not compile source code. 

 Variable is declared as a storage pointer. Use an explicit "storage" keyword to silence this warning.
        Voter delegate = voters[to];
        ^------------^

The solution is just to add the keyword "storage" and then the example works again.

Hi,

The example from https://github.com/ethereum/solidity/blob/develop/docs/solidity-by-example.rst is not working. 

It keeps giving this error in the Mist program:

     Could not compile source code. 

     Variable is declared as a storage pointer. Use an explicit "storage" keyword to silence this warning.
            Voter delegate = voters[to];
            ^------------^

The solution is just to add the keyword "storage" and then the example works again.
@chriseth
Copy link
Contributor

Thanks!

@chriseth chriseth merged commit 9c74473 into ethereum:develop Aug 24, 2017
@axic
Copy link
Member

axic commented Aug 24, 2017

@designium note, it wasn't an error, but a warning, just Mist treats it as an error. Issue tracked here ethereum/mist#2797.

@designium
Copy link
Contributor Author

Thanks!

@designium designium deleted the patch-1 branch August 25, 2017 21:09
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.

3 participants