diff --git a/providers/json-rpc-provider.js b/providers/json-rpc-provider.js index 701d50454..0f72355d6 100644 --- a/providers/json-rpc-provider.js +++ b/providers/json-rpc-provider.js @@ -59,7 +59,7 @@ function getTransaction(transaction) { function JsonRpcProvider(url, network) { if (!(this instanceof JsonRpcProvider)) { throw new Error('missing new'); } - if (arguments.lengt == 1) { + if (arguments.length == 1) { if (typeof(url) === 'string') { try { network = Provider.getNetwork(url);