From 6dbcf44b79511873aa3840de0b3c1dc8d1b78372 Mon Sep 17 00:00:00 2001 From: pkucode Date: Wed, 7 Aug 2024 18:55:07 +0800 Subject: [PATCH] chore: fix some function names (#732) Signed-off-by: pkucode --- test/e2e/btc_staking_e2e_test.go | 4 ++-- x/btcstaking/types/pop.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/e2e/btc_staking_e2e_test.go b/test/e2e/btc_staking_e2e_test.go index 530aa0d0..459cb6ce 100644 --- a/test/e2e/btc_staking_e2e_test.go +++ b/test/e2e/btc_staking_e2e_test.go @@ -71,7 +71,7 @@ func (s *BTCStakingTestSuite) TearDownSuite() { s.Require().NoError(err) } -// TestCreateFinalityProviderAndDelegation is an end-to-end test for +// Test1CreateFinalityProviderAndDelegation is an end-to-end test for // user story 1: user creates finality provider and BTC delegation func (s *BTCStakingTestSuite) Test1CreateFinalityProviderAndDelegation() { chainA := s.configurer.GetChainConfig(0) @@ -258,7 +258,7 @@ func (s *BTCStakingTestSuite) Test2SubmitCovenantSignature() { s.Equal(activeFps[0].VotingPower, activeDel.VotingPower(currentBtcTip.Height, initialization.BabylonBtcFinalizationPeriod, params.CovenantQuorum)) } -// Test2CommitPublicRandomnessAndSubmitFinalitySignature is an end-to-end +// Test3CommitPublicRandomnessAndSubmitFinalitySignature is an end-to-end // test for user story 3: finality provider commits public randomness and submits // finality signature, such that blocks can be finalised. func (s *BTCStakingTestSuite) Test3CommitPublicRandomnessAndSubmitFinalitySignature() { diff --git a/x/btcstaking/types/pop.go b/x/btcstaking/types/pop.go index dd5a562a..d7ee9069 100644 --- a/x/btcstaking/types/pop.go +++ b/x/btcstaking/types/pop.go @@ -46,7 +46,7 @@ func NewPoPBTC(addr sdk.AccAddress, btcSK *btcec.PrivateKey) (*ProofOfPossession return &pop, nil } -// NewPoPWithECDSABTCSig generates a new proof of possession where Bitcoin signature is in ECDSA format +// NewPoPBTCWithECDSABTCSig generates a new proof of possession where Bitcoin signature is in ECDSA format // a proof of possession contains two signatures: // - pop.BtcSig = ecdsa_sign(sk_BTC, addr) func NewPoPBTCWithECDSABTCSig(addr sdk.AccAddress, btcSK *btcec.PrivateKey) (*ProofOfPossessionBTC, error) {