Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,11 @@
client: ThirdwebClient;
}) {
const { chain, client } = args;
const isZkSync = await isZkSyncChain(chain);
if (isZkSync) {
// zksync contracts dont need these implementation constructor params
return {};
}

Check warning on line 217 in packages/thirdweb/src/extensions/prebuilts/get-required-transactions.ts

View check run for this annotation

Codecov / codecov/patch

packages/thirdweb/src/extensions/prebuilts/get-required-transactions.ts#L216-L217

Added lines #L216 - L217 were not covered by tests
const [forwarder, weth] = await Promise.all([
computePublishedContractAddress({
chain,
Expand Down
2 changes: 1 addition & 1 deletion packages/thirdweb/src/utils/any-evm/deploy-metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
async () => {
const isZksolc = await isZkSyncChain(chain);
const bytecodeUri = isZksolc
? compilerMetadata.compilers?.zksolc[0]?.bytecodeUri
? compilerMetadata.compilers?.zksolc?.[0]?.bytecodeUri

Check warning on line 83 in packages/thirdweb/src/utils/any-evm/deploy-metadata.ts

View check run for this annotation

Codecov / codecov/patch

packages/thirdweb/src/utils/any-evm/deploy-metadata.ts#L83

Added line #L83 was not covered by tests
: compilerMetadata.bytecodeUri;

if (!bytecodeUri) {
Expand Down