Skip to content

Commit

Permalink
fix: marshal pubkey correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
richard-ramos committed Apr 25, 2022
1 parent fe50f12 commit f66ad3d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion params/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,12 @@ func (p *PushNotificationServer) MarshalText() ([]byte, error) {
}

func (p *PushNotificationServer) UnmarshalText(data []byte) error {
pk, err := crypto.UnmarshalPubkey(data)
pubKeyBytes, err := hex.DecodeString(string(data))
if err != nil {
return err
}

pk, err := crypto.UnmarshalPubkey(pubKeyBytes)
if err != nil {
return err
}
Expand Down

0 comments on commit f66ad3d

Please sign in to comment.