Skip to content

Commit

Permalink
fix: fix broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
MoonBoi9001 committed Oct 2, 2024
1 parent 96b5c3c commit dcbcf7e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/horizon/test/escrow/collector.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@ contract GraphEscrowCollectorTest is GraphEscrowTest {
function _approveCollector(uint256 tokens) internal {
(uint256 beforeAllowance,) = escrow.authorizedCollectors(users.gateway, users.verifier);
vm.expectEmit(address(escrow));
emit IPaymentsEscrow.AuthorizedCollector(users.gateway, users.verifier);
emit IPaymentsEscrow.AuthorizedCollector(
users.gateway, // payer
users.verifier, // collector
tokens, // addedAllowance
beforeAllowance + tokens // newTotalAllowance after the added allowance
);
escrow.approveCollector(users.verifier, tokens);
(uint256 allowance, uint256 thawEndTimestamp) = escrow.authorizedCollectors(users.gateway, users.verifier);
assertEq(allowance - beforeAllowance, tokens);
Expand Down

0 comments on commit dcbcf7e

Please sign in to comment.