diff --git a/docker/scripts/tools/check-docker-deploy.js b/docker/scripts/tools/check-docker-deploy.js index adb26d4f..95e5203b 100644 --- a/docker/scripts/tools/check-docker-deploy.js +++ b/docker/scripts/tools/check-docker-deploy.js @@ -1,31 +1,31 @@ -/* eslint-disable no-await-in-loop */ +/* eslint-disable no-console */ const ethers = require('ethers'); require('dotenv').config(); -const rollupManagerAbi = require("../../../artifacts/contracts/v2/PolygonRollupManager.sol/PolygonRollupManager.json").abi; +const rollupManagerAbi = require('../../../artifacts/contracts/v2/PolygonRollupManager.sol/PolygonRollupManager.json').abi; async function main() { const currentProvider = ethers.getDefaultProvider('http://localhost:8545'); const signerNode = await currentProvider.getSigner(); - const rollupManagerContract = new ethers.Contract("0xB7f8BC63BbcaD18155201308C8f3540b07f84F5e", rollupManagerAbi, signerNode); + const rollupManagerContract = new ethers.Contract('0xB7f8BC63BbcaD18155201308C8f3540b07f84F5e', rollupManagerAbi, signerNode); const infoContract = await rollupManagerContract.rollupIDToRollupDataV2(1); const info = { - "rollupContract": infoContract[0], - "chainID": infoContract[1], - "verifier": infoContract[2], - "forkID": infoContract[3], - "lastLocalExitRoot": infoContract[4], - "lastBatchSequenced": infoContract[5], - "lastVerifiedBatch": infoContract[6], - "lastVerifiedBatchBeforeUpgrade": infoContract[7], - "rollupTypeID": infoContract[8], - "rollupVerifierType": infoContract[9], - "lastPessimisticRoot": infoContract[10], - "programVKey": infoContract[11], - } - console.log(info) + rollupContract: infoContract[0], + chainID: infoContract[1], + verifier: infoContract[2], + forkID: infoContract[3], + lastLocalExitRoot: infoContract[4], + lastBatchSequenced: infoContract[5], + lastVerifiedBatch: infoContract[6], + lastVerifiedBatchBeforeUpgrade: infoContract[7], + rollupTypeID: infoContract[8], + rollupVerifierType: infoContract[9], + lastPessimisticRoot: infoContract[10], + programVKey: infoContract[11], + }; + console.log(info); } main()