Skip to content

Commit

Permalink
fix() rename to whitelisted
Browse files Browse the repository at this point in the history
  • Loading branch information
immortal-tofu committed Nov 23, 2023
1 parent e9c5cab commit 39dddad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/Identity/AbstractCompliantERC20.sol
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ abstract contract AbstractCompliantERC20 is EIP712WithModifier {
return TFHE.reencrypt(balances[msg.sender], publicKey, 0);
}

uint32 userCountry = rulesContract.countryWallets(msg.sender);
uint32 userCountry = rulesContract.whitelistedWallets(msg.sender);
require(userCountry > 0, "You're not registered as a country wallet");

euint32 walletCountry = identityContract.getIdentifier(wallet, "country");
Expand Down
6 changes: 3 additions & 3 deletions examples/Identity/ERC20Rules.sol
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ interface ICompliantERC20 {
contract ERC20Rules {
string[] public identifiers;

mapping(address => uint32) public countryWallets;
mapping(address => uint32) public whitelistedWallets;
mapping(string => uint8) public countries;
uint16[] public country2CountryRestrictions;

constructor() {
identifiers = ["country", "blacklist"];
countryWallets[address(0x133725C6461120439E85887C7639316CB27a2D9d)] = 1;
countryWallets[address(0x4CaCeF78615AFecEf7eF182CfbD243195Fc90a29)] = 2;
whitelistedWallets[address(0x133725C6461120439E85887C7639316CB27a2D9d)] = 1;
whitelistedWallets[address(0x4CaCeF78615AFecEf7eF182CfbD243195Fc90a29)] = 2;

countries["fr"] = 1;
countries["us"] = 2;
Expand Down

0 comments on commit 39dddad

Please sign in to comment.