mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-12 09:44:24 +02:00
Fixed mapping
This commit is contained in:
@@ -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"];
|
||||
|
Reference in New Issue
Block a user