Solidity, the Smart Contract Programming Language
Go to file
Chim Kan b5d2a4ecd7 Adding storage into the pointer for Voter delegate
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.
2017-08-23 20:25:12 -04:00
cmake
deps@e5c8316db8
docs Adding storage into the pointer for Voter delegate 2017-08-23 20:25:12 -04:00
libdevcore
libevmasm
libjulia/backends/evm
liblll
libsolidity
lllc
scripts
snap
solc
std
test
.editorconfig
.gitignore
.gitmodules
.travis.yml
appveyor.yml
Changelog.md
circle.yml
CMakeLists.txt
CONTRIBUTING.md
LICENSE.txt
README.md
ReleaseChecklist.md

The Solidity Contract-Oriented Programming Language

Join the chat at https://gitter.im/ethereum/solidity

To get started you can find an introduction to the language in the Solidity documentation. In the documentation, you can find code examples as well as a reference of the syntax and details on how to write smart contracts.

You can start using Solidity in your browser with no need to download or compile anything.

The changelog for this project can be found here.

Solidity is still under development. So please do not hesitate and open an issue in GitHub if you encounter anything strange.

Building

See the Solidity documentation for build instructions.

How to Contribute

Please see our contribution guidelines in the Solidity documentation.

Any contributions are welcome!