mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-08 23:18:15 -05:00
Fix a bunch of deepsource warnings (#11814)
This commit is contained in:
@@ -103,7 +103,7 @@ func TestDerivedKeymanager_FetchValidatingPublicKeys(t *testing.T) {
|
||||
for i := 0; i < numAccounts; i++ {
|
||||
privKey, err := util.PrivateKeyFromSeedAndPath(derivedSeed, fmt.Sprintf(ValidatingKeyDerivationPathTemplate, i))
|
||||
require.NoError(t, err)
|
||||
pubKey := [fieldparams.BLSPubkeyLength]byte{}
|
||||
var pubKey [fieldparams.BLSPubkeyLength]byte
|
||||
copy(pubKey[:], privKey.PublicKey().Marshal())
|
||||
wantedPubKeys[i] = pubKey
|
||||
}
|
||||
@@ -142,7 +142,7 @@ func TestDerivedKeymanager_FetchValidatingPrivateKeys(t *testing.T) {
|
||||
for i := 0; i < numAccounts; i++ {
|
||||
privKey, err := util.PrivateKeyFromSeedAndPath(derivedSeed, fmt.Sprintf(ValidatingKeyDerivationPathTemplate, i))
|
||||
require.NoError(t, err)
|
||||
privKeyBytes := [32]byte{}
|
||||
var privKeyBytes [32]byte
|
||||
copy(privKeyBytes[:], privKey.Marshal())
|
||||
wantedPrivKeys[i] = privKeyBytes
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user