Skip to content

Commit

Permalink
use Keymanager() in validator client
Browse files Browse the repository at this point in the history
  • Loading branch information
potuz committed May 22, 2024
1 parent dfeeb86 commit 9a0be2c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion validator/client/payload_attestation.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@ func (v *validator) signPayloadAttestation(ctx context.Context, p *ethpb.Payload
}

// Sign the payload attestation data
sig, err := v.keyManager.Sign(ctx, signReq)
m, err := v.Keymanager()
if err != nil {
return nil, errors.Wrap(err, "could not get key manager")
}
sig, err := m.Sign(ctx, signReq)
if err != nil {
return nil, errors.Wrap(err, "could not sign payload attestation")
}
Expand Down

0 comments on commit 9a0be2c

Please sign in to comment.