From 6c2d26b081c597d60ea0f5a8f934233b1037e136 Mon Sep 17 00:00:00 2001 From: javip97 Date: Wed, 31 Jul 2024 17:01:27 +0200 Subject: [PATCH] fix: epoch message is string --- .../consensus/client/http/submit_signed_voluntary_exist.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ethereum/consensus/client/http/submit_signed_voluntary_exist.go b/ethereum/consensus/client/http/submit_signed_voluntary_exist.go index f35aac6..ec9a6d0 100644 --- a/ethereum/consensus/client/http/submit_signed_voluntary_exist.go +++ b/ethereum/consensus/client/http/submit_signed_voluntary_exist.go @@ -15,8 +15,8 @@ type signedVoluntaryExit struct { } type message struct { - Epoch beaconcommon.Epoch `json:"epoch"` - ValidatorIndex string `json:"validator_index"` + Epoch string `json:"epoch"` + ValidatorIndex string `json:"validator_index"` } // SubmitSignedVoluntaryExit submits a signed voluntary exit to the beacon node. @@ -61,7 +61,7 @@ func newSignedVoluntaryExitsRequest(ctx context.Context, signedVoluntaryExit *si func newSignedVoluntaryExit(epoch beaconcommon.Epoch, validatorIdx uint64, signature string) *signedVoluntaryExit { return &signedVoluntaryExit{ Message: message{ - Epoch: epoch, + Epoch: strconv.Itoa(int(epoch)), ValidatorIndex: strconv.Itoa(int(validatorIdx)), }, Signature: signature,