From d4d7e34c1d8ee5274fba7e0c3e8638193a9c190a Mon Sep 17 00:00:00 2001 From: Javi Date: Wed, 31 Jul 2024 17:03:52 +0200 Subject: [PATCH] fix: epoch message is string (#9) --- .../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,