Skip to content

Commit

Permalink
Fix TestAccount
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan-Ethernal committed Oct 15, 2023
1 parent 0e3097f commit 5718965
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion consensus/polybft/wallet/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func (a *Account) Save(secretsManager secrets.SecretsManager) (err error) {
return err
}

return secretsManager.SetSecret(secrets.ValidatorBLSKey, []byte(hex.EncodeToString(blsRaw)))
return secretsManager.SetSecret(secrets.ValidatorBLSKey, blsRaw)
}

func (a *Account) GetEcdsaPrivateKey() (*ecdsa.PrivateKey, error) {
Expand Down
3 changes: 1 addition & 2 deletions e2e/framework/testserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,7 @@ func (t *TestServer) SecretsInit() (*InitIBFTResult, error) {
}

// Write the networking private key to the secrets manager storage
if setErr := localSecretsManager.SetSecret(secrets.ValidatorBLSKey,
[]byte(hex.EncodeToString(blsPrivKeyRaw))); setErr != nil {
if setErr := localSecretsManager.SetSecret(secrets.ValidatorBLSKey, blsPrivKeyRaw); setErr != nil {
return nil, setErr
}
}
Expand Down

0 comments on commit 5718965

Please sign in to comment.