Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Import sha1 when needed
  • Loading branch information
alcuadrado committed Sep 3, 2022
commit 5c283cb0d914cb759b2f46e41c896ba8f3da939a
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import fs from "fs"
import path from "path"
import sha1 from "sha1"
import arrayUniq from "array-uniq";
import { TASK_TEST_RUN_MOCHA_TESTS } from "hardhat/builtin-tasks/task-names";
import { task, subtask } from "hardhat/config";
Expand Down Expand Up @@ -150,6 +149,7 @@ async function getResolvedRemoteContracts(
provider: EGRAsyncApiProviderT,
remoteContracts: RemoteContract[] = []
) : Promise <RemoteContract[]> {
const { defualt : sha1 } = await import("sha1");
for (const contract of remoteContracts){
let code;
try {
Expand Down