mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-24 04:31:27 +00:00
fix indentation
This commit is contained in:
parent
86ba7e3803
commit
deb54e535c
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user