fix indentation

This commit is contained in:
Jonathan Rainville 2018-06-21 11:41:44 -04:00 committed by Iuri Matias
parent 86ba7e3803
commit deb54e535c

View File

@ -29,7 +29,7 @@ class ConsoleListener {
if (!this.addressToContract[address]) { if (!this.addressToContract[address]) {
let funcSignatures = {}; let funcSignatures = {};
contract.abiDefinition contract.abiDefinition
.filter(func => func.type == "function") .filter(func => func.type === "function")
.map(func => { .map(func => {
const name = func.name + const name = func.name +
'(' + '(' +
@ -54,7 +54,7 @@ class ConsoleListener {
_listenForLogRequests() { _listenForLogRequests() {
if (this.ipc.ipcRole !== 'server') return; if (this.ipc.ipcRole !== 'server') return;
this.ipc.on('log', (request) => { this.ipc.on('log', (request) => {
if(request.type == 'contract-log'){ if (request.type === 'contract-log') {
if (!this.contractsDeployed) return; if (!this.contractsDeployed) return;
let {address, data, transactionHash, blockNumber, gasUsed, status} = request; let {address, data, transactionHash, blockNumber, gasUsed, status} = request;
@ -72,7 +72,7 @@ class ConsoleListener {
let paramString = ""; let paramString = "";
if (func.abi.inputs) { if (func.abi.inputs) {
func.abi.inputs.forEach((input) => { func.abi.inputs.forEach((input) => {
let quote = input.type.indexOf("int") == -1 ? '"' : ''; let quote = input.type.indexOf("int") === -1 ? '"' : '';
paramString += quote + decodedParameters[input.name] + quote + ", "; paramString += quote + decodedParameters[input.name] + quote + ", ";
}); });
paramString = paramString.substring(0, paramString.length - 2); paramString = paramString.substring(0, paramString.length - 2);