diff --git a/package.json b/package.json index 048b5cf..5b2c88e 100644 --- a/package.json +++ b/package.json @@ -51,7 +51,7 @@ "eslint": "^8.31.0", "eslint-plugin-json": "^3.1.0", "hardhat": "^2.0.4", - "hardhat-finder": "^2.0.4", + "hardhat-finder": "^3.0.0", "mocha": "^10.2.0", "prettier": "^2.8.2", "ts-node": "^10.9.1", diff --git a/src/tasks/storageCheck.ts b/src/tasks/storageCheck.ts index a2f4fe0..4141f4c 100644 --- a/src/tasks/storageCheck.ts +++ b/src/tasks/storageCheck.ts @@ -52,7 +52,14 @@ const storageCheckAction: ActionType = async ( } const [contractPath, contractName] = fullyQualifiedName.split(":"); - await finder.setFor(contractPath, contractName, false); + await finder.setFor({ + contractName, + contractPath, + options: { + noCompile: true, + hideWarnings: true, + }, + }); const storage = finder.getStorageLayout()!!.storage; if ( !finder.getStorageLayout() && diff --git a/src/tasks/storageLock.ts b/src/tasks/storageLock.ts index fb38ee6..53b9e20 100644 --- a/src/tasks/storageLock.ts +++ b/src/tasks/storageLock.ts @@ -60,7 +60,14 @@ const storageLockAction: ActionType = async ( const data: StorageVaultData = {}; for (const fullyQualifiedName of fullyQualifiedNames) { const [contractPath, contractName] = fullyQualifiedName.split(":"); - await finder.setFor(contractPath, contractName, false); + await finder.setFor({ + contractName, + contractPath, + options: { + noCompile: true, + hideWarnings: true, + }, + }); const storage = finder.getStorageLayout()!!.storage; data[fullyQualifiedName] = {}; diff --git a/yarn.lock b/yarn.lock index 4f5fe99..4546c6f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2363,10 +2363,10 @@ grapheme-splitter@^1.0.4: resolved "https://registry.yarnpkg.com/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz#9cf3a665c6247479896834af35cf1dbb4400767e" integrity sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ== -hardhat-finder@^2.0.4: - version "2.0.4" - resolved "https://registry.yarnpkg.com/hardhat-finder/-/hardhat-finder-2.0.4.tgz#6a53e2ad6bc54df90139652c42285c71ed07c959" - integrity sha512-d6iwM01ijHtkb/5Wy4/XPnHHNy+oBf6tRlQSNVqHZjl1YhmXDhflr9onM0AS3/6PLe5hFlrjlYEW5lMokHZ4SA== +hardhat-finder@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/hardhat-finder/-/hardhat-finder-3.0.0.tgz#eb8d4503e3e438747bb953f2759d6b695559f490" + integrity sha512-7f5uu7yrO87acSIHrW0uVvJijc8WOS8CZVsDdoaRj8tdhbkqBkwnFoyo5eGSd648hTbcxLxY87MsWkI0Df7WRw== dependencies: chalk "^4.1.2" deepmerge "^4.2.2"