Skip to content

Commit 80fa1b0

Browse files
fix: cleanup TAPCollectorAuthorizationAlreadyRevoked
1 parent ca2ef4f commit 80fa1b0

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

packages/horizon/contracts/interfaces/ITAPCollector.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,10 @@ interface ITAPCollector is IPaymentsCollector {
125125
error TAPCollectorSignerNotAuthorizedByPayer(address payer, address signer);
126126

127127
/**
128-
* Thrown when the attempting to revoke a signer that was already revoked
128+
* Thrown when attempting to thaw a signer that is already revoked
129129
* @param signer The address of the signer
130130
*/
131-
error TAPCollectorAuthorizationAlreadyRevoked(address payer, address signer);
131+
error TAPCollectorAuthorizationAlreadyRevoked(address signer);
132132

133133
/**
134134
* Thrown when attempting to thaw a signer that is already thawing

packages/horizon/contracts/payments/collectors/TAPCollector.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ contract TAPCollector is EIP712, GraphDirectory, ITAPCollector {
8181
PayerAuthorization storage authorization = authorizedSigners[signer];
8282

8383
require(authorization.payer == msg.sender, TAPCollectorSignerNotAuthorizedByPayer(msg.sender, signer));
84-
require(!authorization.revoked, TAPCollectorAuthorizationAlreadyRevoked(msg.sender, signer));
84+
require(!authorization.revoked, TAPCollectorAuthorizationAlreadyRevoked(signer));
8585
require(
8686
authorization.thawEndTimestamp == 0,
8787
TAPCollectorSignerAlreadyThawing(signer, authorization.thawEndTimestamp)

packages/horizon/test/payments/tap-collector/signer/thawSigner.t.sol

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ contract TAPCollectorThawSignerTest is TAPCollectorTest {
3434

3535
bytes memory expectedError = abi.encodeWithSelector(
3636
ITAPCollector.TAPCollectorAuthorizationAlreadyRevoked.selector,
37-
users.gateway,
3837
signer
3938
);
4039
vm.expectRevert(expectedError);

0 commit comments

Comments
 (0)