From fd15b0821ca11ac0189aa0380f2a6a38fdc41163 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Tue, 13 Jun 2017 11:51:00 +0200 Subject: [PATCH] use required parameter names, disable camelcase rule for them --- src/connection/index.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/connection/index.js b/src/connection/index.js index 6819694..26a241d 100644 --- a/src/connection/index.js +++ b/src/connection/index.js @@ -41,12 +41,12 @@ export default class Connection { /** * @public - * @param txId + * @param tx_id */ - getStatus(txId) { + getStatus(tx_id) { // eslint-disable-line camelcase return this._req(this.getApiUrls('statuses'), { query: { - txId + tx_id } }) } @@ -65,13 +65,13 @@ export default class Connection { /** * @public - * @param txId + * @param tx_id * @param status */ - listBlocks({ txId, status }) { + listBlocks({ tx_id, status }) { return this._req(this.getApiUrls('blocks'), { query: { - txId, + tx_id, status } }) @@ -108,12 +108,12 @@ export default class Connection { /** * @public - * @param blockId + * @param block_id */ - listVotes(blockId) { + listVotes(block_id) { // eslint-disable-line camelcase return this._req(this.getApiUrls('votes'), { query: { - blockId + block_id } }) }