Skip to content

Commit

Permalink
Linter fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Yberjon committed Jul 10, 2024
1 parent c77880a commit b783f8f
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 12 deletions.
1 change: 0 additions & 1 deletion .github/workflows/l1-deploy-scripts-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -133,4 +133,3 @@ jobs:
- name: Run tests
run: yarn l1 test:ffi

2 changes: 1 addition & 1 deletion l1-contracts/deploy-scripts/DeployL1.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -222,4 +222,4 @@ contract DeployL1Script is _DeployL1Script {
function deployViaCreate2(bytes memory _bytecode) internal returns (address) {
return _deployViaCreate2(_bytecode);
}
}
}
2 changes: 1 addition & 1 deletion l1-contracts/deploy-scripts/Utils.sol
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ library Utils {
l2GasLimit,
REQUIRED_L2_GAS_PRICE_PER_PUBDATA
) * 2;

L2TransactionRequestDirect memory l2TransactionRequestDirect = L2TransactionRequestDirect({
chainId: chainId,
mintValue: requiredValueToDeploy,
Expand Down
2 changes: 1 addition & 1 deletion l1-contracts/deploy-scripts/_DeployL1.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -731,4 +731,4 @@ contract _DeployL1Script is Script {
function _deployViaCreate2(bytes memory _bytecode) internal returns (address) {
return Utils.deployViaCreate2(_bytecode, config.contracts.create2FactorySalt, addresses.create2Factory);
}
}
}
16 changes: 8 additions & 8 deletions l1-contracts/test/foundry/unit/DeployPaymaster.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,18 @@ contract DeployPaymasterTest is Test {
RegisterHyperchainScript private deployHyperchain;

function _acceptOwnership() private {
vm.startPrank(bridgeHub.pendingOwner());
bridgeHub.acceptOwnership();
vm.stopPrank();
}
vm.startPrank(bridgeHub.pendingOwner());
bridgeHub.acceptOwnership();
vm.stopPrank();
}

function setUp() public {
deployL1 = new DeployL1Script();
deployL1.run();

_deployL1 = new _DeployL1Script();
_deployL1._run();

bridgehubProxyAddress = _deployL1._getBridgehubProxyAddress();
bridgeHub = Bridgehub(bridgehubProxyAddress);
_acceptOwnership();
Expand All @@ -52,7 +52,7 @@ contract DeployPaymasterTest is Test {
string memory url = getChain(1).rpcUrl;
vm.createSelectFork({urlOrAlias: url, blockNumber: 16_428_900});
vm.deal(0xEA785A9c91A07ED69b83EB165f4Ce2C30ecb4c0b, 720000000000000);
deployPaymaster = new DeployPaymaster();
deployPaymaster = new DeployPaymaster();
deployPaymaster.run();

string memory root = vm.projectRoot();
Expand All @@ -66,4 +66,4 @@ contract DeployPaymasterTest is Test {
address paymasterAddressCheck = config.paymaster;
assertEq(paymasterAddress, paymasterAddressCheck);
}
}
}

0 comments on commit b783f8f

Please sign in to comment.