From e1a466b97a215bfed7ee5b77403e9f9ead409999 Mon Sep 17 00:00:00 2001 From: Mauro Lacy Date: Tue, 14 Jan 2025 09:38:24 +0100 Subject: [PATCH] Adapt to new fp btc pk format --- x/zoneconcierge/keeper/ibc_packet_btc_staking_consumer_event.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/zoneconcierge/keeper/ibc_packet_btc_staking_consumer_event.go b/x/zoneconcierge/keeper/ibc_packet_btc_staking_consumer_event.go index 0f4bfeb5..1302631e 100644 --- a/x/zoneconcierge/keeper/ibc_packet_btc_staking_consumer_event.go +++ b/x/zoneconcierge/keeper/ibc_packet_btc_staking_consumer_event.go @@ -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) }