Skip to content

Commit

Permalink
renamed hashed address function
Browse files Browse the repository at this point in the history
  • Loading branch information
sampocs committed Dec 28, 2023
1 parent 208eac7 commit 0dd0b5c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion x/autopilot/keeper/liquidstake.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ func (k Keeper) IBCTransferStToken(
// Note: The channel ID here is different than the one used in PFM
// (we use the outbound channelID, they use the inbound channelID)
// DOUBLE CHECK ME that it shouldn't matter
hashedAddress, err := types.GenerateHashedSender(channelId, transferMetadata.Sender)
hashedAddress, err := types.GenerateHashedAddress(channelId, transferMetadata.Sender)
if err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion x/autopilot/types/autopilot.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ type ModuleRoutingInfo interface {
// when moving to the next hop (i.e. receiver of one hop, becomes sender of next)
//
// This function was borrowed from PFM
func GenerateHashedSender(channelId, originalSender string) (string, error) {
func GenerateHashedAddress(channelId, originalSender string) (string, error) {
senderStr := fmt.Sprintf("%s/%s", channelId, originalSender)
senderHash32 := address.Hash(ModuleName, []byte(senderStr))
sender := sdk.AccAddress(senderHash32[:20])
Expand Down

0 comments on commit 0dd0b5c

Please sign in to comment.