Skip to content

Commit

Permalink
fix: fix active
Browse files Browse the repository at this point in the history
  • Loading branch information
freak12techno committed Oct 3, 2024
1 parent 2819ec4 commit 31bbab8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/converter/converter.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package converter

import (
"encoding/hex"
"fmt"
"main/pkg/types"

Expand Down Expand Up @@ -76,7 +75,7 @@ func (c *Converter) ValidatorFromCosmosValidator(
Identity: validator.Description.Identity,
Website: validator.Description.Website,
Commission: commission,
ConsensusAddressHex: hex.EncodeToString(addr),
ConsensusAddressHex: fmt.Sprintf("%X", addr),
ConsensusAddressValcons: sdkTypes.ConsAddress(addr).String(),
OperatorAddress: validator.OperatorAddress,
Jailed: validator.Jailed,
Expand All @@ -92,5 +91,5 @@ func (c *Converter) MustSetValidatorConsumerConsensusAddr(validator *types.Valid
}

validator.ConsensusAddressValcons = consAddress.String()
validator.ConsensusAddressHex = fmt.Sprintf("%x", consAddress)
validator.ConsensusAddressHex = fmt.Sprintf("%X", consAddress)
}

0 comments on commit 31bbab8

Please sign in to comment.