@ethersproject/contracts
Advanced tools
Comparing version 5.4.0 to 5.4.1
@@ -1,2 +0,2 @@ | ||
export declare const version = "contracts/5.4.0"; | ||
export declare const version = "contracts/5.4.1"; | ||
//# sourceMappingURL=_version.d.ts.map |
@@ -1,2 +0,2 @@ | ||
export const version = "contracts/5.4.0"; | ||
export const version = "contracts/5.4.1"; | ||
//# sourceMappingURL=_version.js.map |
@@ -931,2 +931,11 @@ "use strict"; | ||
}); | ||
if (tx.value) { | ||
const value = BigNumber.from(tx.value); | ||
if (!value.isZero() && !this.interface.deploy.payable) { | ||
logger.throwError("non-payable constructor cannot override value", Logger.errors.UNSUPPORTED_OPERATION, { | ||
operation: "overrides.value", | ||
value: tx.value | ||
}); | ||
} | ||
} | ||
// Make sure the call matches the constructor signature | ||
@@ -933,0 +942,0 @@ logger.checkArgumentCount(args.length, this.interface.deploy.inputs.length, " in Contract constructor"); |
@@ -1,2 +0,2 @@ | ||
export declare const version = "contracts/5.4.0"; | ||
export declare const version = "contracts/5.4.1"; | ||
//# sourceMappingURL=_version.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.version = void 0; | ||
exports.version = "contracts/5.4.0"; | ||
exports.version = "contracts/5.4.1"; | ||
//# sourceMappingURL=_version.js.map |
@@ -1088,2 +1088,11 @@ "use strict"; | ||
}); | ||
if (tx.value) { | ||
var value = bignumber_1.BigNumber.from(tx.value); | ||
if (!value.isZero() && !this.interface.deploy.payable) { | ||
logger.throwError("non-payable constructor cannot override value", logger_1.Logger.errors.UNSUPPORTED_OPERATION, { | ||
operation: "overrides.value", | ||
value: tx.value | ||
}); | ||
} | ||
} | ||
// Make sure the call matches the constructor signature | ||
@@ -1090,0 +1099,0 @@ logger.checkArgumentCount(args.length, this.interface.deploy.inputs.length, " in Contract constructor"); |
@@ -27,3 +27,3 @@ { | ||
], | ||
"gitHead": "c2c0ce75039e7256b287f9a764188d08ed0b7296", | ||
"gitHead": "68229ac0aff790b083717dc73cd84f38d32a3926", | ||
"keywords": [ | ||
@@ -49,5 +49,5 @@ "Ethereum", | ||
"sideEffects": false, | ||
"tarballHash": "0xdc9e3ebe1cccd87fc4b8958a53f7347b7674bbfefaf23fb306a933dc61b36373", | ||
"tarballHash": "0x010929b9f66f0069f4b3537259c5a2fa0c83aeff05a1457a0aa787937eb3864b", | ||
"types": "./lib/index.d.ts", | ||
"version": "5.4.0" | ||
"version": "5.4.1" | ||
} |
@@ -1,1 +0,1 @@ | ||
export const version = "contracts/5.4.0"; | ||
export const version = "contracts/5.4.1"; |
@@ -1169,2 +1169,12 @@ "use strict"; | ||
if (tx.value) { | ||
const value = BigNumber.from(tx.value); | ||
if (!value.isZero() && !this.interface.deploy.payable) { | ||
logger.throwError("non-payable constructor cannot override value", Logger.errors.UNSUPPORTED_OPERATION, { | ||
operation: "overrides.value", | ||
value: tx.value | ||
}); | ||
} | ||
} | ||
// Make sure the call matches the constructor signature | ||
@@ -1171,0 +1181,0 @@ logger.checkArgumentCount(args.length, this.interface.deploy.inputs.length, " in Contract constructor"); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
244714
3495