Skip to content

Commit

Permalink
fix: fix slice init length (#11542)
Browse files Browse the repository at this point in the history
Signed-off-by: shandongzhejiang <shandongzhejiang@icloud.com>
  • Loading branch information
shandongzhejiang committed Aug 21, 2024
1 parent bffe554 commit 27b0bef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion op-challenger/game/fault/preimages/large_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ func mockPreimageOracleData() *types.PreimageOracleData {
for i := 0; i < keccakTypes.BlockSize; i++ {
fullLeaf[i] = byte(i)
}
oracleData := make([]byte, 5*MaxBlocksPerChunk)
oracleData := make([]byte, 0, 5*MaxBlocksPerChunk)
for i := 0; i < 5*MaxBlocksPerChunk; i++ {
oracleData = append(oracleData, fullLeaf...)
}
Expand Down

0 comments on commit 27b0bef

Please sign in to comment.