Skip to content
This repository was archived by the owner on Oct 22, 2021. It is now read-only.

Commit 232e24b

Browse files
committed
Remove unused function
1 parent 59375fb commit 232e24b

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

apis/cosmos-source.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import BigNumber from 'bignumber.js'
44
import { keyBy, orderBy, take, reverse, sortBy, chunk } from 'lodash'
55
import * as reducers from './cosmos-reducers'
6-
import { encodeB32, decodeB32, pubkeyToAddress } from '~/common/address'
6+
import { encodeB32, decodeB32 } from '~/common/address'
77
import { setDecimalLength } from '~/common/numbers'
88
import network from '~/common/network'
99

@@ -139,7 +139,7 @@ export default class CosmosAPI {
139139
const signingInfos = await this.queryAutoPaginate(
140140
`cosmos/slashing/v1beta1/signing_infos`
141141
)
142-
return signingInfos.info
142+
return signingInfos
143143
}
144144

145145
async getValidatorSet(height = 'latest') {
@@ -338,7 +338,6 @@ export default class CosmosAPI {
338338

339339
async getProposalMetaData(proposal, firstBlock) {
340340

341-
console.log(proposal)
342341
const [tally, detailedVotes, proposer] = await Promise.all([
343342
this.query(`cosmos/gov/v1beta1/proposals/${proposal.proposal_id}/tally`),
344343
this.getDetailedVotes(proposal),
@@ -358,15 +357,13 @@ export default class CosmosAPI {
358357
this.getBlock(5200791),
359358
this.query('cosmos/staking/v1beta1/pool'),
360359
])
361-
console.log( console.log("ok") )
362360
if (!Array.isArray(proposalsResponse)) return []
363361
const proposals = await Promise.all(
364362
proposalsResponse.map(async (proposal) => {
365363
const [tally, detailedVotes, proposer] = await this.getProposalMetaData(
366364
proposal,
367365
firstBlock
368366
)
369-
console.log("ok")
370367
return this.reducers.proposalReducer(
371368
proposal,
372369
tally,

0 commit comments

Comments
 (0)