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(
110
110
chain,
111
111
deployMetadata,
112
112
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
+ } ,
116
121
salt,
117
122
} ) ;
118
123
}
@@ -235,14 +240,15 @@ export async function deployContractfromDeployMetadata(
235
240
client,
236
241
account,
237
242
contractId : deployMetadata . name ,
238
- constructorParams :
239
- processedImplParams ||
240
- ( await getAllDefaultConstructorParamsForImplementation ( {
243
+ constructorParams : {
244
+ ...( await getAllDefaultConstructorParamsForImplementation ( {
241
245
chain,
242
246
client,
243
247
contractId : deployMetadata . name ,
244
248
defaultExtensions : deployMetadata . defaultExtensions ,
245
249
} ) ) ,
250
+ ...processedImplParams ,
251
+ } ,
246
252
publisher : deployMetadata . publisher ,
247
253
version : deployMetadata . version ,
248
254
} ) ;
You can’t perform that action at this time.
0 commit comments