Skip to content

Commit

Permalink
Remove unnecesary type conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
dimartiro committed Oct 14, 2024
1 parent 5caab20 commit d12b792
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/client/consensus/grandpa/warp_sync_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func TestGenerateWarpSyncProofOk(t *testing.T) {
})

digestAddArgs := make([]any, 1)
digestAddArgs[0] = types.ConsensusDigest(scheduledChange)
digestAddArgs[0] = scheduledChange
digest.Add(digestAddArgs...)
}

Expand Down Expand Up @@ -154,7 +154,7 @@ func TestFindScheduledChange(t *testing.T) {

digest := types.NewDigest()
digestAddArgs := make([]any, 1)
digestAddArgs[0] = types.ConsensusDigest(scheduledChange)
digestAddArgs[0] = scheduledChange
digest.Add(digestAddArgs...)

blockHeader := &types.Header{
Expand Down

0 comments on commit d12b792

Please sign in to comment.