Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hardhat-deploy

Package Overview
Dependencies
Maintainers
1
Versions
191
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hardhat-deploy - npm Package Compare versions

Comparing version 0.11.13 to 0.11.14

34

dist/src/DeploymentsManager.js

@@ -1005,10 +1005,15 @@ "use strict";

const latestBlock = await this.network.provider.send('eth_getBlockByNumber', ['latest', false]);
const snapshot = await this.network.provider.send('evm_snapshot', []);
this.db.pastFixtures[key] = {
index: ++this.db.snapshotCounter,
snapshot,
data,
blockHash: latestBlock.hash,
deployments: Object.assign({}, this.db.deployments),
};
try {
const snapshot = await this.network.provider.send('evm_snapshot', []);
this.db.pastFixtures[key] = {
index: ++this.db.snapshotCounter,
snapshot,
data,
blockHash: latestBlock.hash,
deployments: Object.assign({}, this.db.deployments),
};
}
catch (err) {
log(`failed to create snapshot`);
}
}

@@ -1023,5 +1028,12 @@ async revertSnapshot(saved) {

}
const success = await this.network.provider.send('evm_revert', [
saved.snapshot,
]);
let success;
try {
success = await this.network.provider.send('evm_revert', [
saved.snapshot,
]);
}
catch (_a) {
log(`failed to revert to snapshot`);
success = false;
}
if (success) {

@@ -1028,0 +1040,0 @@ const blockRetrieved = await this.network.provider.send('eth_getBlockByHash', [saved.blockHash, false]);

{
"name": "hardhat-deploy",
"version": "0.11.13",
"version": "0.11.14",
"description": "Hardhat Plugin For Replicable Deployments And Tests",

@@ -5,0 +5,0 @@ "repository": "github:wighawag/hardhat-deploy",

@@ -1418,10 +1418,14 @@ /* eslint-disable @typescript-eslint/no-explicit-any */

);
const snapshot = await this.network.provider.send('evm_snapshot', []);
this.db.pastFixtures[key] = {
index: ++this.db.snapshotCounter,
snapshot,
data,
blockHash: latestBlock.hash,
deployments: {...this.db.deployments},
};
try {
const snapshot = await this.network.provider.send('evm_snapshot', []);
this.db.pastFixtures[key] = {
index: ++this.db.snapshotCounter,
snapshot,
data,
blockHash: latestBlock.hash,
deployments: {...this.db.deployments},
};
} catch (err) {
log(`failed to create snapshot`);
}
}

@@ -1442,5 +1446,11 @@

}
const success = await this.network.provider.send('evm_revert', [
saved.snapshot,
]);
let success;
try {
success = await this.network.provider.send('evm_revert', [
saved.snapshot,
]);
} catch {
log(`failed to revert to snapshot`);
success = false;
}
if (success) {

@@ -1447,0 +1457,0 @@ const blockRetrieved = await this.network.provider.send(

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc