From 567954ad7cc10be904a04ac3325f1e231e7585a9 Mon Sep 17 00:00:00 2001 From: 0xExp-po Date: Tue, 17 Dec 2024 22:15:41 +0900 Subject: [PATCH] fix: keccak256 import error --- dapp/src/service/WriteContractService.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dapp/src/service/WriteContractService.ts b/dapp/src/service/WriteContractService.ts index 166f1aa..b620b30 100644 --- a/dapp/src/service/WriteContractService.ts +++ b/dapp/src/service/WriteContractService.ts @@ -3,7 +3,9 @@ import { loadedPublicKey } from "./walletService"; import Versioning from "../contracts/soroban_versioning"; import { loadedProjectId } from "./StateService"; -import { keccak256 } from "js-sha3"; +import * as pkg from "js-sha3"; +const { keccak256 } = pkg; +import * as SDK from "@stellar/stellar-sdk"; import type { Vote } from "soroban_versioning"; import type { VoteType } from "types/proposal"; import type { Response } from "types/response";