Skip to content

Commit

Permalink
Simplify digest creation
Browse files Browse the repository at this point in the history
  • Loading branch information
dimartiro committed Oct 14, 2024
1 parent d12b792 commit 28677f7
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions internal/client/consensus/grandpa/warp_sync_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,7 @@ func TestGenerateWarpSyncProofOk(t *testing.T) {
Delay: 2,
})

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

header = types.NewHeader(
Expand Down Expand Up @@ -153,9 +151,7 @@ func TestFindScheduledChange(t *testing.T) {
})

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

blockHeader := &types.Header{
ParentHash: common.Hash{0x00},
Expand Down

0 comments on commit 28677f7

Please sign in to comment.