Skip to content

Commit

Permalink
Fabo/fix failing staking query for terra (#132)
Browse files Browse the repository at this point in the history
* fixed missing terra data source

* fixed missing query

* fix bech32 prefix in selfStake resolver

* linted
  • Loading branch information
faboweb authored Nov 24, 2019
1 parent 3058b73 commit 1c66b84
Show file tree
Hide file tree
Showing 2 changed files with 5,793 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cosmosV0-source.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class CosmosV0API extends PerBlockCacheDataSource {
const hexDelegatorAddressFromOperator = decodeB32(wantedOperatorAddress)
const delegatorAddressFromOperator = encodeB32(
hexDelegatorAddressFromOperator,
`cosmos`
this.delegatorBech32Prefix
)

const selfDelegation = await this.query(
Expand Down
Loading

0 comments on commit 1c66b84

Please sign in to comment.