Skip to content

Commit

Permalink
fix: utils library getting deployed (#487)
Browse files Browse the repository at this point in the history
  • Loading branch information
aon authored May 22, 2024
1 parent 41fb9d9 commit 5312fd4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions l1-contracts-foundry/script/Utils.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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", "[]"));

Expand Down Expand Up @@ -265,7 +265,7 @@ library Utils {
uint256 chainId,
address bridgehubAddress,
address l1SharedBridgeProxy
) public {
) internal {
runL1L2Transaction({
l2Calldata: "",
l2GasLimit: MAX_PRIORITY_TX_GAS,
Expand All @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit 5312fd4

Please sign in to comment.