mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-13 02:04:23 +02:00
Fixed mapping
This commit is contained in:
@@ -219,7 +219,7 @@ function balances(address _account) returns (uint balance) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Nested mappings
|
// Nested mappings
|
||||||
mapping (address => mapping (address => uint) balances) public custodians;
|
mapping (address => mapping (address => uint)) public custodians;
|
||||||
|
|
||||||
// To delete
|
// To delete
|
||||||
delete balances["John"];
|
delete balances["John"];
|
||||||
|
Reference in New Issue
Block a user