Skip to content

Commit

Permalink
fix(namada): fix fetching of validator state
Browse files Browse the repository at this point in the history
  • Loading branch information
egasimus committed Jun 26, 2024
1 parent d22e824 commit 9388608
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/namada/NamadaPoS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class NamadaValidator extends Staking.Validator {
() => connection.abciQuery(`/vp/pos/validator/state/${this.namadaAddress}`)
.then(binary => {
if (binary[0] === 1) {
this.state = connection.decode.pos_validator_state(binary.slice(1))
this.state = connection.decode.pos_validator_state(binary)
}
})
.catch(e => connection.log.warn(
Expand Down

0 comments on commit 9388608

Please sign in to comment.