From 5312fd40c12c622e15db9b5515cff0e5d6c5324d Mon Sep 17 00:00:00 2001 From: Agustin Aon <21188659+aon@users.noreply.github.com> Date: Wed, 22 May 2024 10:08:20 -0300 Subject: [PATCH] fix: utils library getting deployed (#487) --- l1-contracts-foundry/script/Utils.sol | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/l1-contracts-foundry/script/Utils.sol b/l1-contracts-foundry/script/Utils.sol index 3480c491f..23bcf0ff8 100644 --- a/l1-contracts-foundry/script/Utils.sol +++ b/l1-contracts-foundry/script/Utils.sol @@ -175,7 +175,7 @@ library Utils { uint256 chainId, address bridgehubAddress, address l1SharedBridgeProxy - ) public returns (address) { + ) internal returns (address) { bytes32 bytecodeHash = L2ContractHelper.hashL2Bytecode(bytecode); bytes memory deployData = abi.encodeWithSignature( @@ -222,7 +222,7 @@ library Utils { uint256 chainId, address bridgehubAddress, address l1SharedBridgeProxy - ) public { + ) internal { Bridgehub bridgehub = Bridgehub(bridgehubAddress); uint256 gasPrice = bytesToUint256(vm.rpc("eth_gasPrice", "[]")); @@ -265,7 +265,7 @@ library Utils { uint256 chainId, address bridgehubAddress, address l1SharedBridgeProxy - ) public { + ) internal { runL1L2Transaction({ l2Calldata: "", l2GasLimit: MAX_PRIORITY_TX_GAS, @@ -280,7 +280,7 @@ library Utils { /** * @dev Read hardhat bytecodes */ - function readHardhatBytecode(string memory artifactPath) public view returns (bytes memory) { + function readHardhatBytecode(string memory artifactPath) internal view returns (bytes memory) { string memory root = vm.projectRoot(); string memory path = string.concat(root, artifactPath); string memory json = vm.readFile(path); @@ -295,7 +295,7 @@ library Utils { bytes memory _data, uint256 _value, uint256 _delay - ) public { + ) internal { IGovernance governance = IGovernance(_governor); IGovernance.Call[] memory calls = new IGovernance.Call[](1);