Skip to content

Commit beeafdd

Browse files
committed
🔊 firewall: rename allowed event
1 parent 610236a commit beeafdd

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

.changeset/clean-turkeys-turn.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@exactly/protocol": patch
3+
---
4+
5+
🔊 firewall: rename allowed event

contracts/verified/Firewall.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ contract Firewall is Initializable, AccessControlUpgradeable {
3939
if (allowed) allowlist[account] = msg.sender;
4040
else delete allowlist[account];
4141

42-
emit AllowlistSet(account, msg.sender, allowed);
42+
emit Allowed(account, msg.sender, allowed);
4343
}
4444

4545
/// @notice Returns whether an account is allowed.
@@ -53,7 +53,7 @@ contract Firewall is Initializable, AccessControlUpgradeable {
5353
/// @param account address of the account that was allowlisted.
5454
/// @param allower address of the allower that allowed the account.
5555
/// @param allowed whether the account is allowlisted.
56-
event AllowlistSet(address indexed account, address indexed allower, bool allowed);
56+
event Allowed(address indexed account, address indexed allower, bool allowed);
5757
}
5858

5959
error AlreadyAllowed(address account);

test/Firewall.t.sol

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ contract FirewallTest is Test {
4646
assertEq(firewall.allowlist(address(this)), address(0));
4747
}
4848

49-
function test_allow_emitsAllowlistSet() external {
49+
function test_allow_emitsAllowed() external {
5050
vm.expectEmit(true, true, true, true, address(firewall));
51-
emit AllowlistSet(address(this), address(this), true);
51+
emit Allowed(address(this), address(this), true);
5252
firewall.allow(address(this), true);
5353
}
5454

@@ -110,4 +110,4 @@ contract FirewallTest is Test {
110110
// solhint-enable func-name-mixedcase
111111
}
112112

113-
event AllowlistSet(address indexed account, address indexed allower, bool allowed);
113+
event Allowed(address indexed account, address indexed allower, bool allowed);

0 commit comments

Comments
 (0)