Skip to content

Commit

Permalink
Adapt to new fp btc pk format
Browse files Browse the repository at this point in the history
  • Loading branch information
maurolacy committed Jan 14, 2025
1 parent 397e2f4 commit e1a466b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ func (k Keeper) HandleConsumerDistribution(

// Process the distribution list
for _, reward := range rewardsDistribution {
fpPubkey, err := reward.FpBtcPk.ToBTCPK()
fpPubkey, err := bbn.NewBIP340PubKeyFromHex(reward.FpBtcPkHex)
if err != nil {
return fmt.Errorf("failed to create BIP340 public key: %w", err)
}
Expand Down

0 comments on commit e1a466b

Please sign in to comment.