mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
Fixed mapping
This commit is contained in:
parent
8f9f9e53e8
commit
65cba2b1f5
@ -219,7 +219,7 @@ function balances(address _account) returns (uint balance) {
|
||||
}
|
||||
|
||||
// Nested mappings
|
||||
mapping (address => mapping (address => uint) balances) public custodians;
|
||||
mapping (address => mapping (address => uint)) public custodians;
|
||||
|
||||
// To delete
|
||||
delete balances["John"];
|
||||
|
Loading…
Reference in New Issue
Block a user