Skip to content

Commit a713fea

Browse files
committed
fixed createAccount build issue
1 parent e63f68c commit a713fea

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/server/routes/contract/extensions/accountFactory/write/createAccount.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { Static, Type } from "@sinclair/typebox";
22
import { FastifyInstance } from "fastify";
33
import { StatusCodes } from "http-status-codes";
4+
import { Address } from "thirdweb";
45
import { queueTx } from "../../../../../../db/transactions/queueTx";
56
import { getContract } from "../../../../../../utils/cache/getContract";
67
import { prebuiltDeployResponseSchema } from "../../../../../schemas/prebuilts";
@@ -76,10 +77,10 @@ export const createAccount = async (fastify: FastifyInstance) => {
7677
extraData,
7778
);
7879
const deployedAddress =
79-
await contract.accountFactory.predictAccountAddress(
80+
(await contract.accountFactory.predictAccountAddress(
8081
adminAddress,
8182
extraData,
82-
);
83+
)) as Address;
8384

8485
const queueId = await queueTx({
8586
tx,

0 commit comments

Comments
 (0)