Skip to content

Commit

Permalink
bug: fix slice init length
Browse files Browse the repository at this point in the history
Signed-off-by: jinjiadu <[email protected]>
  • Loading branch information
jinjiadu committed Aug 31, 2024
1 parent 82275c9 commit c22e850
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/test_env/eth1_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func generateKeystoreAndExtraData(keystoreDir string, extraAddressesToFound []st
return keyStoreAndExtraData{}, err
}

zeroBytes := make([]byte, 32) // Create 32 zero bytes
zeroBytes := make([]byte, 0, 32) // Create 32 zero bytes
extradata := append(zeroBytes, signerBytes...) // Concatenate zero bytes and signer address
extradata = append(extradata, make([]byte, 65)...) // Concatenate 65 more zero bytes

Expand Down

0 comments on commit c22e850

Please sign in to comment.