@layerzerolabs/verify-contract 1.1.29 → 1.1.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -57136,8 +57136,16 @@ var verifyNonTarget = async (config, logger11) => {
57136
57136
  return [];
57137
57137
  }
57138
57138
  const licenseType = findLicenseType(source.content);
57139
- const abi = getContructorABIFromSource(source.content);
57140
- const constructorArguments = encodeContructorArguments(abi, contract.constructorArguments);
57139
+ const constructorArguments = (
57140
+ // If there are no constructor arguments, we don't pass anything
57141
+ contract.constructorArguments == null ? void 0 : (
57142
+ // If the constructor arguments are passed encoded we pass them directly
57143
+ typeof contract.constructorArguments === "string" ? contract.constructorArguments : (
57144
+ // For decoded constructor arguments we'll need to try and encoded them using the contract source
57145
+ encodeContructorArguments(getContructorABIFromSource(source.content), contract.constructorArguments)
57146
+ )
57147
+ )
57148
+ );
57141
57149
  const solcInput = extractSolcInputFromMetadata(deployment.metadata);
57142
57150
  const submitProps = {
57143
57151
  apiUrl: networkConfig.apiUrl,