Skip to content

Commit

Permalink
eslint error fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Furter committed Apr 4, 2019
1 parent e8418c8 commit 1c89f50
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
11 changes: 5 additions & 6 deletions packages/web3-core-method/lib/methods/AbstractMethod.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ export default class AbstractMethod {
*
* @param {AbstractWeb3Module} moduleInstance - The package where the method is called from for example Eth.
*/
beforeExecution(moduleInstance) {
}
beforeExecution(moduleInstance) {}

/**
* This method will be executed after the RPC request.
Expand Down Expand Up @@ -199,15 +198,15 @@ export default class AbstractMethod {
*
* @method setArguments
*
* @param {IArguments} args
* @param {IArguments} methodArguments
*/
setArguments(args) {
let parameters = cloneDeep([...args]);
setArguments(methodArguments) {
let parameters = cloneDeep([...methodArguments]);
let callback = null;

if (parameters.length > this.parametersAmount) {
if (!isFunction(parameters[parameters.length - 1])) {
throw new TypeError('The latest parameter should be a function otherwise it can\'t be used as callback');
throw new TypeError("The latest parameter should be a function otherwise it can't be used as callback");
}

callback = parameters.pop();
Expand Down
2 changes: 1 addition & 1 deletion packages/web3-utils/src/Utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ export const rightPad = (string, chars, sign) => {
* @returns {String} hex representation of input string
*/
export const utf8ToHex = (value) => {
value = utf8.encode(string);
value = utf8.encode(value);
let hex = '';

/* eslint-disable no-control-regex */
Expand Down

0 comments on commit 1c89f50

Please sign in to comment.