Skip to content

Commit

Permalink
fix: tip height as uint32
Browse files Browse the repository at this point in the history
  • Loading branch information
RafilxTenfen committed Oct 16, 2024
1 parent c80175a commit ecb82ce
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions e2etest/reporter_e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
package e2etest

import (
"github.com/babylonlabs-io/vigilante/btcclient"
"github.com/babylonlabs-io/vigilante/netparams"
"sync"
"testing"
"time"

"github.com/babylonlabs-io/vigilante/btcclient"
"github.com/babylonlabs-io/vigilante/netparams"

"github.com/babylonlabs-io/vigilante/metrics"
"github.com/babylonlabs-io/vigilante/reporter"
"github.com/stretchr/testify/require"
Expand All @@ -27,7 +28,7 @@ func (tm *TestManager) BabylonBTCChainMatchesBtc(t *testing.T) bool {
bbnBtcLcTip, err := tm.BabylonClient.BTCHeaderChainTip()
require.NoError(t, err)

return uint64(tipHeight) == bbnBtcLcTip.Header.Height && tipHash.String() == bbnBtcLcTip.Header.HashHex
return uint32(tipHeight) == bbnBtcLcTip.Header.Height && tipHash.String() == bbnBtcLcTip.Header.HashHex
}

func (tm *TestManager) GenerateAndSubmitBlockNBlockStartingFromDepth(t *testing.T, N int, depth uint32) {
Expand Down

0 comments on commit ecb82ce

Please sign in to comment.