Skip to content

Commit

Permalink
fix: epoch message is string (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
javip97 committed Jul 31, 2024
1 parent 62a9440 commit d4d7e34
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit d4d7e34

Please sign in to comment.