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 24, 2024
1 parent 77a113a commit a97480c
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 a97480c

Please sign in to comment.