Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
corydickson committed Jan 15, 2025
1 parent 2336b57 commit 4b6c402
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions test/BaseHook.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ contract BaseHookTest is Test, Deployers {
vm.prank(admin);
governor.setProposalThreshold(10);

// Give actor enough tokens to meet proposal threshold.
vm.prank(minter);
token.mint(_actor, 100);
vm.startPrank(_actor);
Expand Down Expand Up @@ -172,11 +171,9 @@ contract BaseHookTest is Test, Deployers {
governor.queue(targets, values, calldatas, keccak256("Test"));
}

function test_execute_succeeds(
address _actor,
uint256 _proposalTargetCalldata,
uint256 _elapsedAfterQueuing
) public {
function test_execute_succeeds(address _actor, uint256 _proposalTargetCalldata, uint256 _elapsedAfterQueuing)
public
{
deployGovernor(address(hook));

_actor = makeAddr("actor");
Expand Down Expand Up @@ -210,8 +207,10 @@ contract BaseHookTest is Test, Deployers {
vm.expectEmit(address(hook));
emit BaseHookMock.BeforeExecute();
vm.expectCall(
address(hook), abi.encodeCall(hook.afterExecute, (_actor, proposalId, targets, values, calldatas, keccak256("Test")))
address(hook),
abi.encodeCall(hook.afterExecute, (_actor, proposalId, targets, values, calldatas, keccak256("Test")))
);

governor.execute(targets, values, calldatas, keccak256("Test"));
}
}

0 comments on commit 4b6c402

Please sign in to comment.