Created
April 1, 2020 03:04
-
-
Save agoiabel/ea9cb60cae460c43ca6d6a257b1d5107 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.5.3; | |
contract Mapping { | |
mapping(address => uint) balances; | |
mapping(address => mapping(address => bool)) approved; | |
function manipulateMapOfMap(spender) external { | |
approved[msg.sender][spender] = true //assign a value to the approved map | |
approved[msg.sender][spender]; //get the value of the map | |
delete approved[msg.sender][spender] //delete the reference | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment