Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkeating committed Feb 6, 2024
1 parent 91d74de commit 61528aa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions script/Deploy.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {INotifiableRewardReceiver} from "src/interfaces/INotifiableRewardReceive
import {IUniswapV3FactoryOwnerActions} from "src/interfaces/IUniswapV3FactoryOwnerActions.sol";

contract Deploy is Script, DeployInput {
uint256 deployerPrivateKey;
uint256 deployerPrivateKey;

function setUp() public {
deployerPrivateKey = vm.envOr(
Expand All @@ -26,8 +26,11 @@ contract Deploy is Script, DeployInput {
function run() public returns (V3FactoryOwner, UniStaker) {
vm.startBroadcast(deployerPrivateKey);
// Deploy the staking contract
UniStaker uniStaker =
new UniStaker(IERC20(PAYOUT_TOKEN_ADDRESS), IERC20Delegates(STAKE_TOKEN_ADDRESS), vm.addr(deployerPrivateKey));
UniStaker uniStaker = new UniStaker(
IERC20(PAYOUT_TOKEN_ADDRESS),
IERC20Delegates(STAKE_TOKEN_ADDRESS),
vm.addr(deployerPrivateKey)
);

// Deploy a new owner for the V3 factory owner actions contract.
V3FactoryOwner v3FactoryOwner = new V3FactoryOwner(
Expand Down
2 changes: 1 addition & 1 deletion test/UniStaker.integration.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ contract DeployScriptTest is Test, DeployInput {

function testFork_DeployStakingContracts() public {
Deploy _deployScript = new Deploy();
_deployScript.setUp();
_deployScript.setUp();
(V3FactoryOwner v3FactoryOwner, UniStaker uniStaker) = _deployScript.run();

assertEq(v3FactoryOwner.admin(), UNISWAP_GOVERNOR_TIMELOCK);
Expand Down

0 comments on commit 61528aa

Please sign in to comment.