Skip to content
This repository was archived by the owner on Aug 26, 2024. It is now read-only.

Commit d39ea8c

Browse files
committed
fix: packages
1 parent 30dca11 commit d39ea8c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

chainDeploy/helpers/logging.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { encodeFunctionData } from "@viem/utils"; // Adjust the import path according to your project structure
1+
import { encodeFunctionData } from "viem"; // Adjust the import path according to your project structure
22
import { promises as fs } from "fs";
33

44
interface PrepareAndLogTransactionParams {
@@ -29,15 +29,15 @@ export const addTransaction = async (tx: any) => {
2929
const writeSingleTransactionToFile = async (tx: any) => {
3030
const filePath = "./transactions.json";
3131
try {
32-
const fileContent = await fs.readFile(filePath, 'utf8');
32+
const fileContent = await fs.readFile(filePath, "utf8");
3333
const batch = JSON.parse(fileContent);
3434

3535
batch.transactions.push(tx);
3636

3737
await fs.writeFile(filePath, JSON.stringify(batch, null, 2));
3838
console.log(`Transaction added and written to ${filePath}`);
3939
} catch (error) {
40-
if (error.code === 'ENOENT') {
40+
if (error.code === "ENOENT") {
4141
const batch = {
4242
version: "1.0",
4343
chainId: "34443",

deploy/03-deploy-ctokens-set-extensions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { DeployFunction } from "hardhat-deploy/types";
2-
import { Address, encodeAbiParameters, encodeFunctionData, Hash, parseAbiParameters, zeroAddress } from "viem";
2+
import { Address, encodeAbiParameters, Hash, parseAbiParameters, zeroAddress } from "viem";
33

44
import { prepareAndLogTransaction } from "../chainDeploy/helpers/logging";
55

0 commit comments

Comments
 (0)