File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -210,6 +210,11 @@ export async function getAllDefaultConstructorParamsForImplementation(args: {
210
210
client : ThirdwebClient ;
211
211
} ) {
212
212
const { chain, client } = args ;
213
+ const isZkSync = await isZkSyncChain ( chain ) ;
214
+ if ( isZkSync ) {
215
+ // zksync contracts dont need these implementation constructor params
216
+ return { } ;
217
+ }
213
218
const [ forwarder , weth ] = await Promise . all ( [
214
219
computePublishedContractAddress ( {
215
220
chain,
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ export async function fetchBytecodeFromCompilerMetadata(options: {
80
80
async ( ) => {
81
81
const isZksolc = await isZkSyncChain ( chain ) ;
82
82
const bytecodeUri = isZksolc
83
- ? compilerMetadata . compilers ?. zksolc [ 0 ] ?. bytecodeUri
83
+ ? compilerMetadata . compilers ?. zksolc ?. [ 0 ] ?. bytecodeUri
84
84
: compilerMetadata . bytecodeUri ;
85
85
86
86
if ( ! bytecodeUri ) {
You can’t perform that action at this time.
0 commit comments