Skip to content

Commit 88852c4

Browse files
committed
Fixed epoch being a number instead of a string in finality checkpoint endpoint
1 parent b370534 commit 88852c4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/beacon_api/controllers/v1/beacon_controller.ex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,15 +171,15 @@ defmodule BeaconApi.V1.BeaconController do
171171
finalized: finalized,
172172
data: %{
173173
previous_justified: %{
174-
epoch: previous_justified_checkpoint.epoch,
174+
epoch: previous_justified_checkpoint.epoch |> Integer.to_string(),
175175
root: Utils.hex_encode(previous_justified_checkpoint.root)
176176
},
177177
current_justified: %{
178-
epoch: current_justified_checkpoint.epoch,
178+
epoch: current_justified_checkpoint.epoch |> Integer.to_string(),
179179
root: Utils.hex_encode(current_justified_checkpoint.root)
180180
},
181181
finalized: %{
182-
epoch: finalized_checkpoint.epoch,
182+
epoch: finalized_checkpoint.epoch |> Integer.to_string(),
183183
root: Utils.hex_encode(finalized_checkpoint.root)
184184
}
185185
}

0 commit comments

Comments
 (0)