Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
laisolizq committed Sep 13, 2024
1 parent 2796cff commit d1198bc
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions docker/scripts/tools/check-docker-deploy.js
Original file line number Diff line number Diff line change
@@ -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;

Check failure on line 6 in docker/scripts/tools/check-docker-deploy.js

View workflow job for this annotation

GitHub Actions / lint-and-test (16.x)

Unable to resolve path to module '../../../artifacts/contracts/v2/PolygonRollupManager.sol/PolygonRollupManager.json'

Check failure on line 6 in docker/scripts/tools/check-docker-deploy.js

View workflow job for this annotation

GitHub Actions / lint-and-test (16.x)

Unable to resolve path to module '../../../artifacts/contracts/v2/PolygonRollupManager.sol/PolygonRollupManager.json'

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()
Expand Down

0 comments on commit d1198bc

Please sign in to comment.