diff --git a/lib/cosmosV0-source.js b/lib/cosmosV0-source.js index 16515c5391..05c3ef7f2e 100644 --- a/lib/cosmosV0-source.js +++ b/lib/cosmosV0-source.js @@ -61,6 +61,11 @@ class CosmosV0API extends RESTDataSource { extractInvolvedAddresses(transaction) { const involvedAddresses = transaction.tags.reduce((addresses, tag) => { + // temporary in here to identify why this fails + if (!tag.value) { + console.log(JSON.stringify(transaction)) + return addresses + } if (tag.value.startsWith(`cosmos`)) { addresses.push(tag.value) } @@ -146,8 +151,8 @@ class CosmosV0API extends RESTDataSource { const consensusAddress = pubkeyToAddress(validator.consensus_pubkey) validator.voting_power = consensusValidators[consensusAddress] ? BigNumber(consensusValidators[consensusAddress].voting_power) - .div(totalVotingPower) - .toNumber() + .div(totalVotingPower) + .toNumber() : 0 validator.signing_info = signingInfos[consensusAddress] })