From 9a0be2c149b1b7dc4a00d66297699fa5b66bba32 Mon Sep 17 00:00:00 2001 From: Potuz Date: Wed, 22 May 2024 08:56:15 -0300 Subject: [PATCH] use Keymanager() in validator client --- validator/client/payload_attestation.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/validator/client/payload_attestation.go b/validator/client/payload_attestation.go index 3b405227dfd4..7df76ce2ecdf 100644 --- a/validator/client/payload_attestation.go +++ b/validator/client/payload_attestation.go @@ -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") }