File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/server/routes/contract/extensions/accountFactory/write Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1
1
import { Static , Type } from "@sinclair/typebox" ;
2
2
import { FastifyInstance } from "fastify" ;
3
3
import { StatusCodes } from "http-status-codes" ;
4
+ import { Address } from "thirdweb" ;
4
5
import { queueTx } from "../../../../../../db/transactions/queueTx" ;
5
6
import { getContract } from "../../../../../../utils/cache/getContract" ;
6
7
import { prebuiltDeployResponseSchema } from "../../../../../schemas/prebuilts" ;
@@ -76,10 +77,10 @@ export const createAccount = async (fastify: FastifyInstance) => {
76
77
extraData ,
77
78
) ;
78
79
const deployedAddress =
79
- await contract . accountFactory . predictAccountAddress (
80
+ ( await contract . accountFactory . predictAccountAddress (
80
81
adminAddress ,
81
82
extraData ,
82
- ) ;
83
+ ) ) as Address ;
83
84
84
85
const queueId = await queueTx ( {
85
86
tx,
You can’t perform that action at this time.
0 commit comments