@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/cli.js +23 -23
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +10 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -58,7 +58,7 @@ interface VerifyHardhatContractConfig {
|
|
|
58
58
|
address: string;
|
|
59
59
|
deployment: string;
|
|
60
60
|
contractName: string;
|
|
61
|
-
constructorArguments?: unknown[];
|
|
61
|
+
constructorArguments?: unknown[] | string;
|
|
62
62
|
}
|
|
63
63
|
interface VerifyHardhatNonTargetConfig extends VerifyHardhatBaseConfig {
|
|
64
64
|
contracts: VerifyHardhatContractConfig[];
|
package/dist/index.d.ts
CHANGED
|
@@ -58,7 +58,7 @@ interface VerifyHardhatContractConfig {
|
|
|
58
58
|
address: string;
|
|
59
59
|
deployment: string;
|
|
60
60
|
contractName: string;
|
|
61
|
-
constructorArguments?: unknown[];
|
|
61
|
+
constructorArguments?: unknown[] | string;
|
|
62
62
|
}
|
|
63
63
|
interface VerifyHardhatNonTargetConfig extends VerifyHardhatBaseConfig {
|
|
64
64
|
contracts: VerifyHardhatContractConfig[];
|
package/dist/index.js
CHANGED
|
@@ -57152,8 +57152,16 @@ var verifyNonTarget = async (config, logger11) => {
|
|
|
57152
57152
|
return [];
|
|
57153
57153
|
}
|
|
57154
57154
|
const licenseType = findLicenseType(source.content);
|
|
57155
|
-
const
|
|
57156
|
-
|
|
57155
|
+
const constructorArguments = (
|
|
57156
|
+
// If there are no constructor arguments, we don't pass anything
|
|
57157
|
+
contract.constructorArguments == null ? void 0 : (
|
|
57158
|
+
// If the constructor arguments are passed encoded we pass them directly
|
|
57159
|
+
typeof contract.constructorArguments === "string" ? contract.constructorArguments : (
|
|
57160
|
+
// For decoded constructor arguments we'll need to try and encoded them using the contract source
|
|
57161
|
+
encodeContructorArguments(getContructorABIFromSource(source.content), contract.constructorArguments)
|
|
57162
|
+
)
|
|
57163
|
+
)
|
|
57164
|
+
);
|
|
57157
57165
|
const solcInput = extractSolcInputFromMetadata(deployment.metadata);
|
|
57158
57166
|
const submitProps = {
|
|
57159
57167
|
apiUrl: networkConfig.apiUrl,
|