hardhat-deploy
Advanced tools
Comparing version 0.11.19 to 0.11.20
@@ -80,3 +80,4 @@ "use strict"; | ||
let artifact = getOldArtifactSync(name, folderPath); | ||
if (!artifact && (await artifacts.artifactExists(name).catch(() => false))) { | ||
if (!artifact && | ||
(await artifacts.artifactExists(name).catch(() => false))) { | ||
const hardhatArtifact = await artifacts.readArtifact(name); | ||
@@ -276,3 +277,3 @@ // check if name is already a fullyQualifiedName | ||
if (protocolSplit.length > 1) { | ||
if (protocolSplit[0].toLowerCase() === 'ledger') { | ||
if (protocolSplit[0].toLowerCase() === 'external') { | ||
address = protocolSplit[1]; | ||
@@ -283,2 +284,8 @@ addressesToProtocol[address.toLowerCase()] = | ||
} | ||
else if (protocolSplit[0].toLowerCase() === 'ledger') { | ||
address = protocolSplit[1]; | ||
addressesToProtocol[address.toLowerCase()] = | ||
protocolSplit[0].toLowerCase(); | ||
// knownAccountsDict[address.toLowerCase()] = true; // TODO ? this would prevent auto impersonation in fork/test | ||
} | ||
else if (protocolSplit[0].toLowerCase() === 'privatekey') { | ||
@@ -285,0 +292,0 @@ address = new wallet_1.Wallet(protocolSplit[1]).address; |
{ | ||
"name": "hardhat-deploy", | ||
"version": "0.11.19", | ||
"version": "0.11.20", | ||
"description": "Hardhat Plugin For Replicable Deployments And Tests", | ||
@@ -5,0 +5,0 @@ "repository": "github:wighawag/hardhat-deploy", |
@@ -71,3 +71,6 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ | ||
let artifact = getOldArtifactSync(name, folderPath); | ||
if (!artifact && (await artifacts.artifactExists(name).catch(()=>false))) { | ||
if ( | ||
!artifact && | ||
(await artifacts.artifactExists(name).catch(() => false)) | ||
) { | ||
const hardhatArtifact: Artifact = await artifacts.readArtifact(name); | ||
@@ -336,3 +339,3 @@ // check if name is already a fullyQualifiedName | ||
if (protocolSplit.length > 1) { | ||
if (protocolSplit[0].toLowerCase() === 'ledger') { | ||
if (protocolSplit[0].toLowerCase() === 'external') { | ||
address = protocolSplit[1]; | ||
@@ -342,2 +345,7 @@ addressesToProtocol[address.toLowerCase()] = | ||
// knownAccountsDict[address.toLowerCase()] = true; // TODO ? this would prevent auto impersonation in fork/test | ||
} else if (protocolSplit[0].toLowerCase() === 'ledger') { | ||
address = protocolSplit[1]; | ||
addressesToProtocol[address.toLowerCase()] = | ||
protocolSplit[0].toLowerCase(); | ||
// knownAccountsDict[address.toLowerCase()] = true; // TODO ? this would prevent auto impersonation in fork/test | ||
} else if (protocolSplit[0].toLowerCase() === 'privatekey') { | ||
@@ -344,0 +352,0 @@ address = new Wallet(protocolSplit[1]).address; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
11486165
152
159572