diff options
author | Chim Kan <designium@gmail.com> | 2017-08-24 08:25:12 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-24 08:25:12 +0800 |
commit | b5d2a4ecd7ed971a962bac1d61b5d3ffca824084 (patch) | |
tree | f8bbb6818de247615926776bab2f8499b2830c09 /.gitmodules | |
parent | 957f23a9f4cb181b2dfaf0170816080513bfe786 (diff) | |
download | dexon-solidity-b5d2a4ecd7ed971a962bac1d61b5d3ffca824084.tar dexon-solidity-b5d2a4ecd7ed971a962bac1d61b5d3ffca824084.tar.gz dexon-solidity-b5d2a4ecd7ed971a962bac1d61b5d3ffca824084.tar.bz2 dexon-solidity-b5d2a4ecd7ed971a962bac1d61b5d3ffca824084.tar.lz dexon-solidity-b5d2a4ecd7ed971a962bac1d61b5d3ffca824084.tar.xz dexon-solidity-b5d2a4ecd7ed971a962bac1d61b5d3ffca824084.tar.zst dexon-solidity-b5d2a4ecd7ed971a962bac1d61b5d3ffca824084.zip |
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.
Diffstat (limited to '.gitmodules')
0 files changed, 0 insertions, 0 deletions