Skip to content

Commit

Permalink
fix test file
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinssgh committed Feb 12, 2024
1 parent 8a60376 commit 365dd2b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions zetaclient/bitcoin/bitcoin_signer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ func TestP2WPHSizeBreakdown(t *testing.T) {
}

// helper function to create a new BitcoinChainClient
func createTestClient(t *testing.T) *ChainClient {
func createTestClient(t *testing.T) *BTCChainClient {
skHex := "7b8507ba117e069f4a3f456f505276084f8c92aee86ac78ae37b4d1801d35fa8"
privateKey, err := crypto.HexToECDSA(skHex)
require.Nil(t, err)
Expand All @@ -431,7 +431,7 @@ func createTestClient(t *testing.T) *ChainClient {
tssAddress := tss.BTCAddressWitnessPubkeyHash().EncodeAddress()

// Create BitcoinChainClient
client := &ChainClient{
client := &BTCChainClient{
Tss: tss,
Mu: &sync.Mutex{},
includedTxResults: make(map[string]*btcjson.GetTransactionResult),
Expand All @@ -446,7 +446,7 @@ func createTestClient(t *testing.T) *ChainClient {
return client
}

func mineTxNSetNonceMark(ob *ChainClient, nonce uint64, txid string, preMarkIndex int) {
func mineTxNSetNonceMark(ob *BTCChainClient, nonce uint64, txid string, preMarkIndex int) {
// Mine transaction
outTxID := ob.GetTxID(nonce)
ob.includedTxResults[outTxID] = &btcjson.GetTransactionResult{TxID: txid}
Expand Down

0 comments on commit 365dd2b

Please sign in to comment.