Skip to content

Commit

Permalink
Merge pull request #6 from neonlabsorg/adapt-for-neon-network
Browse files Browse the repository at this point in the history
Adapt for neon network
  • Loading branch information
kristinaNikolaevaa authored Aug 9, 2024
2 parents 39c9952 + 4668a1a commit 66e5ae8
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ WORKDIR /app
ADD ./ /app/
RUN chmod +x *.sh
RUN npm ci
COPY hardhat-deploy.patch /tmp/
RUN cd ./node_modules/hardhat-deploy/dist/src && patch -p0 < /tmp/hardhat-deploy.patch

46 changes: 46 additions & 0 deletions hardhat-deploy.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
diff -ur DeploymentsManager.js DeploymentsManager.js
--- DeploymentsManager.js 2024-08-08 20:22:36
+++ DeploymentsManager.js 2024-08-08 21:15:30
@@ -154,7 +154,7 @@
}
if (this.db.pastFixtures[fixtureKey]) {
const pastFixture = this.db.pastFixtures[fixtureKey];
- const success = await this.revertSnapshot(pastFixture);
+ const success = true;
if (success) {
return this.db.deployments;
}
@@ -163,7 +163,7 @@
}
}
if (globalFixture && options.fallbackToGlobal) {
- const success = await this.revertSnapshot(globalFixture);
+ const success = true;
if (success) {
return this.db.deployments;
}
@@ -178,7 +178,7 @@
log: false,
savePendingTx: false,
});
- await this.saveSnapshot(fixtureKey);
+ //await this.saveSnapshot(fixtureKey);
return this.db.deployments;
},
createFixture: (func) => {
@@ -190,13 +190,13 @@
}
const saved = this.db.pastFixtures[id];
if (saved) {
- const success = await this.revertSnapshot(saved);
+ //const success = await this.revertSnapshot(saved);
if (success) {
return saved.data;
}
}
const data = await func(this.env, options);
- await this.saveSnapshot(id, data);
+ //await this.saveSnapshot(id, data);
return data;
};
},

0 comments on commit 66e5ae8

Please sign in to comment.