ensure the arrays in BeaconStateDiff are int-indexable in Nim 2.0 (#5189)

This commit is contained in:
tersec 2023-07-13 21:25:10 +00:00 committed by GitHub
parent c549fe6a65
commit 703eead2e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -518,8 +518,8 @@ type
latest_block_header*: BeaconBlockHeader
# Mod-increment/circular
block_roots*: array[SLOTS_PER_EPOCH, Eth2Digest]
state_roots*: array[SLOTS_PER_EPOCH, Eth2Digest]
block_roots*: array[SLOTS_PER_EPOCH.int, Eth2Digest]
state_roots*: array[SLOTS_PER_EPOCH.int, Eth2Digest]
# Replace
eth1_data*: Eth1Data