Skip to content

Commit

Permalink
fix: assorted
Browse files Browse the repository at this point in the history
  • Loading branch information
gpsanant authored and seanmcgary committed Jan 2, 2025
1 parent a79a059 commit 3a7da59
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion pkg/postgres/postgres.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ package postgres
import (
"database/sql"
"fmt"
"regexp"

"github.com/Layr-Labs/sidecar/internal/config"
"github.com/Layr-Labs/sidecar/internal/tests"
"github.com/Layr-Labs/sidecar/pkg/postgres/migrations"
Expand All @@ -11,7 +13,6 @@ import (
"gorm.io/driver/postgres"
"gorm.io/gorm"
"gorm.io/gorm/logger"
"regexp"
)

type PostgresConfig struct {
Expand Down
1 change: 0 additions & 1 deletion pkg/rewards/8_goldOperatorODRewardAmounts.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ WITH reward_snapshot_operators AS (
ap.reward_hash,
ap.snapshot AS snapshot,
ap.token,
ap.tokens_per_registered_snapshot,
ap.tokens_per_registered_snapshot_decimal,
ap.avs AS avs,
ap.operator AS operator,
Expand Down
3 changes: 2 additions & 1 deletion pkg/rewards/rewardsV2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,8 @@ func Test_RewardsV2(t *testing.T) {

t.Logf("Gold staging rows for snapshot %s: %d", snapshotDate, len(goldRows))
for i, row := range goldRows {
if strings.EqualFold(row.RewardHash, strings.ToLower("0xB38AB57E8E858F197C07D0CDF61F34EB07C3D0FC58390417DDAD0BF528681909")) {
if strings.EqualFold(row.RewardHash, strings.ToLower("0xB38AB57E8E858F197C07D0CDF61F34EB07C3D0FC58390417DDAD0BF528681909")) &&
strings.EqualFold(row.Earner, strings.ToLower("0xaFF71569D30ED876987088a62E0EA881EBc761E6")) {
t.Logf("%d: %s %s %s %s %s", i, row.Earner, row.Snapshot.String(), row.RewardHash, row.Token, row.Amount)
}
// t.Logf("%d: %s %s %s %s %s", i, row.Earner, row.Snapshot.String(), row.RewardHash, row.Token, row.Amount)
Expand Down
1 change: 1 addition & 0 deletions scripts/downloadTestData.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ if [[ -z $version ]]; then
exit 1
fi
echo "Downloading testdata version $dataUrl"

curl -L $dataUrl | tar xvz -C ./

0 comments on commit 3a7da59

Please sign in to comment.