Fixed Contract method overrides with updated Interface.
This commit is contained in:
parent
7635708c21
commit
74c71e6677
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user