Skip to content

Adding storage into the pointer for Voter delegate#2787

Merged
chriseth merged 1 commit intoargotorg:developfrom
designium:patch-1
Aug 24, 2017
Merged

Adding storage into the pointer for Voter delegate#2787
chriseth merged 1 commit intoargotorg:developfrom
designium:patch-1

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 argotorg:develop Aug 24, 2017
@axic
Copy link
Contributor

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

Comments