mirror of
https://github.com/scroll-tech/scroll.git
synced 2026-04-23 03:00:50 -04:00
fix: Fix import genesis script (#79)
This commit is contained in:
@@ -15,7 +15,10 @@ async function main() {
|
||||
|
||||
const [deployer] = await ethers.getSigners();
|
||||
|
||||
const ZKRollup = await ethers.getContractAt("ZKRollup", addressFile.get("ZKRollup.proxy"), deployer);
|
||||
const rollupAddr = process.env.L1_ZK_ROLLUP_PROXY_ADDR || addressFile.get("ZKRollup.proxy") || "0x";
|
||||
console.log("Using rollup proxy address:", rollupAddr);
|
||||
|
||||
const ZKRollup = await ethers.getContractAt("ZKRollup", rollupAddr, deployer);
|
||||
const genesis = JSON.parse(fs.readFileSync(GENESIS_FILE_PATH, 'utf8'));
|
||||
console.log("Using genesis block:", genesis.blockHash);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user