Skip to content

Commit

Permalink
Merge pull request #62 from valory-xyz/fix/image-json-error
Browse files Browse the repository at this point in the history
This PR fixes missing `snapshot.json` file issue in the docker image
  • Loading branch information
DavidMinarsch authored Jan 25, 2023
2 parents 9df775c + 4b05497 commit 7c35bf9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@ WORKDIR /base

RUN yarn install
RUN npx hardhat compile
RUN cp scripts/mainnet_snapshot.json ./sanpshot.json

ENTRYPOINT ["bash", "entrypoint.sh"]
3 changes: 1 addition & 2 deletions deploy/0_deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ const { expect } = require("chai");
module.exports = async () => {
// Read configs from the JSON file
const fs = require("fs");
// Copy this file from scripts/mainnet_snapshot.json or construct one following the JSON defined structure
const snapshotFile = "snapshot.json";
const snapshotFile = "/base/scripts/mainnet_snapshot.json";
const dataFromJSON = fs.readFileSync(snapshotFile, "utf8");
const snapshotJSON = JSON.parse(dataFromJSON);

Expand Down

0 comments on commit 7c35bf9

Please sign in to comment.