Repository navigation
Expand file tree
/
Copy pathhardhat-deploy.patch
More file actions
46 lines (46 loc) · 1.87 KB
/
Copy pathhardhat-deploy.patch
File metadata and controls
46 lines (46 loc) · 1.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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;
};
},