Merge pull request #2627 from atfornes/patch-2

Change Mapping example to valid (executable) code
This commit is contained in:
chriseth 2017-07-26 14:45:00 +02:00 committed by GitHub
commit 887823dca6

View File

@ -815,9 +815,10 @@ for each ``_KeyType``, recursively.
}
contract MappingUser {
address contractAddress = 0x42;
function f() returns (uint) {
return MappingExample(contractAddress).balances(this);
MappingExample m = new MappingExample();
m.update(100);
return m.balances(this);
}
}