mirror of
https://github.com/Permissionless-Software-Foundation/ipfs-bch-wallet-consumer.git
synced 2026-09-21 16:52:03 -07:00
linting
This commit is contained in:
@@ -39,7 +39,7 @@ class IPFS {
|
||||
|
||||
// Start ipfs-coord
|
||||
this.ipfsCoordAdapter = new this.IpfsCoordAdapter({
|
||||
ipfs: this.ipfs,
|
||||
ipfs: this.ipfs
|
||||
// eventEmitter: this.eventEmitter
|
||||
})
|
||||
await this.ipfsCoordAdapter.start()
|
||||
|
||||
@@ -99,8 +99,6 @@ class JSONRPC {
|
||||
}
|
||||
console.log(`parsedData: ${JSON.stringify(parsedData, null, 2)}`)
|
||||
|
||||
|
||||
|
||||
// Added the property "from" to the parsedData object;
|
||||
// necessary for calculating rate limits (based on the IPFS ID).
|
||||
parsedData.from = from
|
||||
@@ -110,11 +108,11 @@ class JSONRPC {
|
||||
|
||||
// Forward data on to bch adapter if this is the response of a BCH query.
|
||||
try {
|
||||
if(parsedData.payload.result.method === 'bch') {
|
||||
console.log(`routing to BCH adapter`)
|
||||
if (parsedData.payload.result.method === 'bch') {
|
||||
console.log('routing to BCH adapter')
|
||||
retObj = await _this.adapters.bch.rpcHandler(parsedData)
|
||||
}
|
||||
} catch(err) {
|
||||
} catch (err) {
|
||||
/* exit quietly */
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user