Skip to content

Commit ab00045

Browse files
committed
go fmt
1 parent a84982c commit ab00045

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

pkg/coreContracts/migrations/202601122133_preprodRewardsV22/up.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ func (m *ContractMigration) Up(db *gorm.DB, cs contractStore.ContractStore, l *z
3131
CoreContracts: []*helpers.ContractImport{},
3232
ImplementationContracts: []*helpers.ImplementationContractImport{
3333
{
34-
ProxyContractAddress: contractsMap.AllocationManager,
34+
ProxyContractAddress: contractsMap.RewardsCoordinator,
3535
ImplementationContracts: []*helpers.ImplementationContract{
3636
{
3737
Contract: helpers.ContractImport{

pkg/eigenState/precommitProcessors/slashingProcessor/createSlashingAdjustments_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ func Test_CreateSlashingAdjustments(t *testing.T) {
247247
LogIndex: 1,
248248
}
249249
err := sp.createSlashingAdjustments(slashEvent1, 1005)
250-
// Due to PK constraint (block_number, log_index, transaction_hash),
250+
// Due to PK constraint (block_number, log_index, transaction_hash),
251251
// only the first staker gets an adjustment record. This is a known limitation.
252252
// The function will return an error when trying to insert the second staker's record.
253253
// This is expected behavior given the current schema.
@@ -278,7 +278,7 @@ func Test_CreateSlashingAdjustments(t *testing.T) {
278278
`, "0xoperator5", "0xstrategy5").Scan(&adjustment)
279279
require.NoError(t, res.Error)
280280
assert.Contains(t, adjustment.SlashMultiplier, "0.7", "Expected multiplier 0.7 (1 - 0.3)")
281-
281+
282282
// Note: This test reveals a schema design issue where the PK doesn't allow
283283
// multiple stakers to be affected by the same slash event. The unique constraint
284284
// (staker, strategy, operator, withdrawal_block_number, slash_block_number)
@@ -493,4 +493,3 @@ func insertSlashingEvent(t *testing.T, grm *gorm.DB, operator, strategy, wadSlas
493493
`, operator, strategy, wadSlashed, blockNumber, txHash, logIndex)
494494
require.NoError(t, res.Error, "Failed to insert slashing event")
495495
}
496-

pkg/rewards/stakerShareSnapshots_anvil_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,4 +517,3 @@ func assertSnapshot(t *testing.T, snapshots []StakerShareSnapshot, snapshotDate,
517517
}
518518
require.True(t, found, fmt.Sprintf("Snapshot %s not found", snapshotDate))
519519
}
520-

0 commit comments

Comments
 (0)