Skip to content

Commit b04c059

Browse files
committed
refactor: Export getInitializeTransaction function and improve code formatting
1 parent 53437dc commit b04c059

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

packages/thirdweb/src/extensions/prebuilts/deploy-published.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ async function directDeploy(options: {
278278
});
279279
}
280280

281-
async function getInitializeTransaction(options: {
281+
export async function getInitializeTransaction(options: {
282282
client: ThirdwebClient;
283283
chain: Chain;
284284
account: Account;
@@ -304,8 +304,8 @@ async function getInitializeTransaction(options: {
304304
(i) =>
305305
i.type === "function" &&
306306
i.name ===
307-
(metadata.factoryDeploymentData?.implementationInitializerFunction ||
308-
"initialize"),
307+
(metadata.factoryDeploymentData?.implementationInitializerFunction ||
308+
"initialize"),
309309
) as AbiFunction;
310310
if (!initializeFunction) {
311311
throw new Error(`Could not find initialize function for ${metadata.name}`);
@@ -338,9 +338,9 @@ async function getInitializeTransaction(options: {
338338
moduleInstallData.push(
339339
installFunction
340340
? encodeAbiParameters(
341-
installFunction.inputs,
342-
normalizeFunctionParams(installFunction, module.initializeParams),
343-
)
341+
installFunction.inputs,
342+
normalizeFunctionParams(installFunction, module.initializeParams),
343+
)
344344
: "0x",
345345
);
346346
}

0 commit comments

Comments
 (0)