File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed
packages/thirdweb/src/extensions/prebuilts Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -110,9 +110,14 @@ export async function deployPublishedContract(
110110 chain,
111111 deployMetadata,
112112 client,
113- initializeParams : contractParams || deployMetadata . constructorParams ,
114- implementationConstructorParams :
115- implementationConstructorParams || deployMetadata . implConstructorParams ,
113+ initializeParams : {
114+ ...deployMetadata . constructorParams ,
115+ ...contractParams ,
116+ } ,
117+ implementationConstructorParams : {
118+ ...deployMetadata . implConstructorParams ,
119+ ...implementationConstructorParams ,
120+ } ,
116121 salt,
117122 } ) ;
118123}
@@ -235,14 +240,15 @@ export async function deployContractfromDeployMetadata(
235240 client,
236241 account,
237242 contractId : deployMetadata . name ,
238- constructorParams :
239- processedImplParams ||
240- ( await getAllDefaultConstructorParamsForImplementation ( {
243+ constructorParams : {
244+ ...( await getAllDefaultConstructorParamsForImplementation ( {
241245 chain,
242246 client,
243247 contractId : deployMetadata . name ,
244248 defaultExtensions : deployMetadata . defaultExtensions ,
245249 } ) ) ,
250+ ...processedImplParams ,
251+ } ,
246252 publisher : deployMetadata . publisher ,
247253 version : deployMetadata . version ,
248254 } ) ;
You can’t perform that action at this time.
0 commit comments