Skip to content

Commit 68b3d81

Browse files
committed
fix format
1 parent 8075795 commit 68b3d81

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

apps/developer-hub/next-env.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/// <reference types="next" />
22
/// <reference types="next/image-types/global" />
3+
/// <reference path="./.next/types/routes.d.ts" />
34

45
// NOTE: This file should not be edited
56
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

contract_manager/scripts/common.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,14 @@ export async function deployIfNotCached(
3535
const key = cacheKey ?? `${chain.getId()}-${artifactName}`;
3636
return runIfNotCached(key, async () => {
3737
const artifact = JSON.parse(
38-
readFileSync(join(config.jsonOutputDir, `${artifactName}.sol`, `${artifactName}.json`), "utf8"),
38+
readFileSync(
39+
join(
40+
config.jsonOutputDir,
41+
`${artifactName}.sol`,
42+
`${artifactName}.json`,
43+
),
44+
"utf8",
45+
),
3946
);
4047

4148
// Handle bytecode which can be either a string or an object with an 'object' property
@@ -74,7 +81,10 @@ export function getWeb3Contract(
7481
address: string,
7582
): Contract {
7683
const artifact = JSON.parse(
77-
readFileSync(join(jsonOutputDir, `${artifactName}.sol`, `${artifactName}.json`), "utf8"),
84+
readFileSync(
85+
join(jsonOutputDir, `${artifactName}.sol`, `${artifactName}.json`),
86+
"utf8",
87+
),
7888
);
7989
const web3 = new Web3();
8090
return new web3.eth.Contract(artifact["abi"], address);
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/// <reference types="next" />
22
/// <reference types="next/image-types/global" />
3+
/// <reference path="./.next/types/routes.d.ts" />
34

45
// NOTE: This file should not be edited
56
// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.

0 commit comments

Comments
 (0)