Merge pull request #133 from ygnr/master

Fixed typo on JsonRpcProvider arguments length.
This commit is contained in:
Richard Moore 2018-03-05 21:43:29 -05:00 committed by GitHub
commit 8a842af999
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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);