Created
August 9, 2022 11:45
-
-
Save david30907d/a8fd7659c1322a6a06572ff4ebb22054 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
contract TornadoCash is Ownerhip { | |
mapping(address=>bool) isBlacklisted; | |
function blackList(address _user) public onlyOwner { | |
require(!isBlacklisted[_user], "user already blacklisted"); | |
isBlacklisted[_user] = true; | |
// emit events as well | |
} | |
function transfer(address _to, uint256 _value) public { | |
require(!isBlacklisted[_to], "Recipient is backlisted"); | |
// remaining transfer logic | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment