Skip to content

Commit bf1fa67

Browse files
author
Audio
committed
fix: refactoring errors and linting
1 parent ca833a3 commit bf1fa67

File tree

5 files changed

+8
-7
lines changed

5 files changed

+8
-7
lines changed

lib/account.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,8 @@ module.exports = function(getRequest, apiKey) {
159159

160160
const queryObject = {
161161
module, action, address, apiKey
162-
}
162+
};
163+
163164
var query = new URLSearchParams(queryObject).toString();
164165
return getRequest(query);
165166
},

lib/block.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ module.exports = function(getRequest, apiKey) {
1414
}
1515
const queryObject = {
1616
module, action, address, blockno, apiKey
17-
}
17+
};
1818
var query = new URLSearchParams(queryObject).toString();
1919
return getRequest(query);
2020
}

lib/proxy.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ module.exports =function(getRequest, apiKey) {
196196
const action = 'eth_getStorageAt';
197197
const queryObject = {
198198
module, action, apiKey, address, position, tag
199-
}
199+
};
200200
var query = new URLSearchParams(queryObject).toString();
201201
return getRequest(query);
202202
},
@@ -234,7 +234,7 @@ module.exports =function(getRequest, apiKey) {
234234
const action = 'eth_estimateGas';
235235
const queryObject = {
236236
module, action, apiKey, to, value, gasPrice, gas
237-
}
237+
};
238238
var query = new URLSearchParams(queryObject).toString();
239239
return getRequest(query);
240240
},

lib/stats.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ module.exports = function(getRequest, apiKey) {
3838
const action = 'ethsupply';
3939
const queryObject = {
4040
module, action, apiKey
41-
}
41+
};
4242
var query = new URLSearchParams(queryObject).toString();
4343
return getRequest(query);
4444
},
@@ -52,7 +52,7 @@ module.exports = function(getRequest, apiKey) {
5252
ethprice() {
5353
const module = 'stats';
5454
const action = 'ethprice';
55-
const queryOBject = {
55+
const queryObject = {
5656
module, action, apiKey
5757
};
5858
var query = new URLSearchParams(queryObject).toString();

lib/transaction.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module.exports = function(getRequest, apiKey) {
1111
const queryObject = {
1212
module, action, txhash, apiKey
1313
};
14-
var query = new URLSearchParams(queryObject).toString()
14+
var query = new URLSearchParams(queryObject).toString();
1515
return getRequest(query);
1616
}
1717
};

0 commit comments

Comments
 (0)