From 703eead2e6d6e3615ac09b168cc1179e7c1664ff Mon Sep 17 00:00:00 2001 From: tersec Date: Thu, 13 Jul 2023 21:25:10 +0000 Subject: [PATCH] ensure the arrays in BeaconStateDiff are int-indexable in Nim 2.0 (#5189) --- beacon_chain/spec/datatypes/capella.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beacon_chain/spec/datatypes/capella.nim b/beacon_chain/spec/datatypes/capella.nim index df165b729..9488caefa 100644 --- a/beacon_chain/spec/datatypes/capella.nim +++ b/beacon_chain/spec/datatypes/capella.nim @@ -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