diff --git a/clientcontroller/babylon.go b/clientcontroller/babylon.go index ec86156..cbdd848 100644 --- a/clientcontroller/babylon.go +++ b/clientcontroller/babylon.go @@ -161,7 +161,7 @@ func (bc *BabylonController) reliablySendMsgs(msgs []sdk.Msg) (*provider.Relayer func (bc *BabylonController) SubmitCovenantSigs(covSigs []types.CovenantSigs) (*types.TxResponse, error) { msgs := make([]sdk.Msg, 0, len(covSigs)) for _, covSig := range covSigs { - bip340UnbondingSig := bbntypes.NewBIP340SignatureFromBTCSig(&covSig.UnbondingSig) + bip340UnbondingSig := bbntypes.NewBIP340SignatureFromBTCSig(covSig.UnbondingSig) msgs = append(msgs, &btcstakingtypes.MsgAddCovenantSigs{ Signer: bc.mustGetTxSigner(), Pk: bbntypes.NewBIP340PubKeyFromBTCPK(covSig.PublicKey), diff --git a/covenant/covenant.go b/covenant/covenant.go index dd69780..c0eb791 100644 --- a/covenant/covenant.go +++ b/covenant/covenant.go @@ -248,7 +248,7 @@ func BuildCovenantSigs(pk *secp.PublicKey, resp SigningResponse) []types.Covenan PublicKey: pk, StakingTxHash: stkTxHash, SlashingSigs: signatures.SlashSigs, - UnbondingSig: *signatures.UnbondingSig, + UnbondingSig: signatures.UnbondingSig, SlashingUnbondingSigs: signatures.SlashUnbondingSigs, }) } diff --git a/covenant/covenant_test.go b/covenant/covenant_test.go index 75f3bc0..46db9a5 100644 --- a/covenant/covenant_test.go +++ b/covenant/covenant_test.go @@ -183,7 +183,7 @@ func FuzzAddCovenantSig(f *testing.F) { PublicKey: covKeyPair.PublicKey, StakingTxHash: testInfo.StakingTx.TxHash(), SlashingSigs: covSigs, - UnbondingSig: *unbondingCovSig, + UnbondingSig: unbondingCovSig, SlashingUnbondingSigs: unbondingCovSlashingSigs, }) } diff --git a/types/sigs.go b/types/sigs.go index 228dd60..c324ca7 100644 --- a/types/sigs.go +++ b/types/sigs.go @@ -10,6 +10,6 @@ type CovenantSigs struct { PublicKey *btcec.PublicKey StakingTxHash chainhash.Hash SlashingSigs [][]byte - UnbondingSig schnorr.Signature + UnbondingSig *schnorr.Signature SlashingUnbondingSigs [][]byte }