Skip to content

Commit

Permalink
fix CI e2e failure
Browse files Browse the repository at this point in the history
  • Loading branch information
ws4charlie committed Sep 23, 2024
1 parent 2c65b28 commit 4aa84f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zetaclient/chains/bitcoin/observer/observer.go
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ func (ob *Observer) FetchUTXOs(ctx context.Context) error {

// List all unspent UTXOs (160ms)
tssAddr := ob.TSS().BTCAddressWitnessPubkeyHash(ob.Chain().ChainId)
if tssAddr != nil {
if tssAddr == nil {
return fmt.Errorf("error getting bitcoin tss address")

Check warning on line 374 in zetaclient/chains/bitcoin/observer/observer.go

View check run for this annotation

Codecov / codecov/patch

zetaclient/chains/bitcoin/observer/observer.go#L372-L374

Added lines #L372 - L374 were not covered by tests
}
utxos, err := ob.btcClient.ListUnspentMinMaxAddresses(0, maxConfirmations, []btcutil.Address{tssAddr})

Check warning on line 376 in zetaclient/chains/bitcoin/observer/observer.go

View check run for this annotation

Codecov / codecov/patch

zetaclient/chains/bitcoin/observer/observer.go#L376

Added line #L376 was not covered by tests
Expand Down

0 comments on commit 4aa84f4

Please sign in to comment.