-
Notifications
You must be signed in to change notification settings - Fork 616
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
708b748
commit b135dbc
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// SPDX-License-Identifier: UNLICENSED | ||
pragma solidity ^0.8.10; | ||
|
||
import {Script} from "forge-std/Script.sol"; | ||
import {console} from "forge-std/console.sol"; | ||
|
||
import {L1ViewOracle} from "../../src/L1/L1ViewOracle.sol"; | ||
|
||
contract DeployL1ViewOracle is Script { | ||
uint256 L1_DEPLOYER_PRIVATE_KEY = vm.envUint("L1_DEPLOYER_PRIVATE_KEY"); | ||
|
||
function run() external { | ||
vm.startBroadcast(L1_DEPLOYER_PRIVATE_KEY); | ||
|
||
L1ViewOracle l1ViewOracle = new L1ViewOracle(); | ||
logAddress("L1_VIEW_ORACLE_ADDR", address(l1ViewOracle)); | ||
|
||
vm.stopBroadcast(); | ||
} | ||
|
||
function logAddress(string memory name, address addr) internal view { | ||
console.log(string(abi.encodePacked(name, "=", vm.toString(address(addr))))); | ||
} | ||
} |