File tree Expand file tree Collapse file tree 17 files changed +55
-17
lines changed
contract/extensions/accountFactory/write Expand file tree Collapse file tree 17 files changed +55
-17
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ interface QueueTxParams {
10
10
chainId : number ;
11
11
extension : ContractExtension ;
12
12
// TODO: These shouldn't be in here
13
- deployedContractAddress ?: string ;
13
+ deployedContractAddress ?: Address ;
14
14
deployedContractType ?: string ;
15
15
simulateTx ?: boolean ;
16
16
idempotencyKey ?: string ;
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,
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 { getSdk } from "../../../utils/cache/getSdk" ;
6
7
import { contractDeployBasicSchema } from "../../schemas/contract" ;
@@ -93,7 +94,7 @@ export async function deployPrebuilt(fastify: FastifyInstance) {
93
94
compilerOptions,
94
95
} ,
95
96
) ;
96
- const deployedAddress = await tx . simulate ( ) ;
97
+ const deployedAddress = ( await tx . simulate ( ) ) as Address ;
97
98
98
99
const queueId = await queueTx ( {
99
100
tx,
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 { getSdk } from "../../../../utils/cache/getSdk" ;
6
7
import { contractDeployBasicSchema } from "../../../schemas/contract" ;
@@ -98,7 +99,7 @@ export async function deployPrebuiltEdition(fastify: FastifyInstance) {
98
99
compilerOptions,
99
100
} ,
100
101
) ;
101
- const deployedAddress = await tx . simulate ( ) ;
102
+ const deployedAddress = ( await tx . simulate ( ) ) as Address ;
102
103
103
104
const queueId = await queueTx ( {
104
105
tx,
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 { getSdk } from "../../../../utils/cache/getSdk" ;
6
7
import { contractDeployBasicSchema } from "../../../schemas/contract" ;
@@ -98,7 +99,7 @@ export async function deployPrebuiltEditionDrop(fastify: FastifyInstance) {
98
99
compilerOptions,
99
100
} ,
100
101
) ;
101
- const deployedAddress = await tx . simulate ( ) ;
102
+ const deployedAddress = ( await tx . simulate ( ) ) as Address ;
102
103
103
104
const queueId = await queueTx ( {
104
105
tx,
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 { getSdk } from "../../../../utils/cache/getSdk" ;
6
7
import { contractDeployBasicSchema } from "../../../schemas/contract" ;
@@ -89,7 +90,7 @@ export async function deployPrebuiltMarketplaceV3(fastify: FastifyInstance) {
89
90
compilerOptions,
90
91
} ,
91
92
) ;
92
- const deployedAddress = await tx . simulate ( ) ;
93
+ const deployedAddress = ( await tx . simulate ( ) ) as Address ;
93
94
94
95
const queueId = await queueTx ( {
95
96
tx,
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 { getSdk } from "../../../../utils/cache/getSdk" ;
6
7
import { contractDeployBasicSchema } from "../../../schemas/contract" ;
@@ -92,7 +93,7 @@ export async function deployPrebuiltMultiwrap(fastify: FastifyInstance) {
92
93
compilerOptions,
93
94
} ,
94
95
) ;
95
- const deployedAddress = await tx . simulate ( ) ;
96
+ const deployedAddress = ( await tx . simulate ( ) ) as Address ;
96
97
97
98
const queueId = await queueTx ( {
98
99
tx,
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 { getSdk } from "../../../../utils/cache/getSdk" ;
6
7
import { contractDeployBasicSchema } from "../../../schemas/contract" ;
@@ -95,7 +96,7 @@ export async function deployPrebuiltNFTCollection(fastify: FastifyInstance) {
95
96
compilerOptions,
96
97
} ,
97
98
) ;
98
- const deployedAddress = await tx . simulate ( ) ;
99
+ const deployedAddress = ( await tx . simulate ( ) ) as Address ;
99
100
100
101
const queueId = await queueTx ( {
101
102
tx,
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 { getSdk } from "../../../../utils/cache/getSdk" ;
6
7
import { contractDeployBasicSchema } from "../../../schemas/contract" ;
@@ -98,7 +99,7 @@ export async function deployPrebuiltNFTDrop(fastify: FastifyInstance) {
98
99
compilerOptions,
99
100
} ,
100
101
) ;
101
- const deployedAddress = await tx . simulate ( ) ;
102
+ const deployedAddress = ( await tx . simulate ( ) ) as Address ;
102
103
103
104
const queueId = await queueTx ( {
104
105
tx,
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 { getSdk } from "../../../../utils/cache/getSdk" ;
6
7
import { contractDeployBasicSchema } from "../../../schemas/contract" ;
@@ -94,7 +95,7 @@ export async function deployPrebuiltPack(fastify: FastifyInstance) {
94
95
compilerOptions,
95
96
} ,
96
97
) ;
97
- const deployedAddress = await tx . simulate ( ) ;
98
+ const deployedAddress = ( await tx . simulate ( ) ) as Address ;
98
99
99
100
const queueId = await queueTx ( {
100
101
tx,
You can’t perform that action at this time.
0 commit comments