Fixed Contract method overrides with updated Interface.

This commit is contained in:
Richard Moore 2018-01-28 20:58:56 -05:00
parent 7635708c21
commit 74c71e6677
No known key found for this signature in database
GPG Key ID: 525F70A6FCABC295
2 changed files with 2 additions and 2 deletions

@ -63,7 +63,7 @@ function Contract(addressOrName, contractInterface, signerOrProvider) {
var params = Array.prototype.slice.call(arguments);
// If 1 extra parameter was passed in, it contains overrides
if (params.length == method.inputs.length + 1) {
if (params.length == method.inputs.types.length + 1) {
transaction = params.pop();
if (typeof(transaction) !== 'object') {
throw new Error('invalid transaction overrides');

@ -1,6 +1,6 @@
{
"name": "ethers-contracts",
"version": "2.2.0",
"version": "2.2.1",
"description": "Contract and Interface (ABI) library for Ethereum.",
"bugs": {
"url": "http://github.com/ethers-io/ethers.js/issues",