diff --git a/beacon_chain/spec/eth2_merkleization.nim b/beacon_chain/spec/eth2_merkleization.nim index 884f45384..1436b457a 100644 --- a/beacon_chain/spec/eth2_merkleization.nim +++ b/beacon_chain/spec/eth2_merkleization.nim @@ -98,10 +98,10 @@ func init*(T: type HashedValidatorPubKey, key: ValidatorPubKey): HashedValidator # The interface of HashSet is such that we must construct a full # instance to check if it's in the set - then we can return that # instace and discard the one we just created temporarily - keys[tmp] + addr keys[tmp][] except KeyError: raiseAssert "just checked" else: - tmp + addr tmp[] - HashedValidatorPubKey(value: addr cached[]) + HashedValidatorPubKey(value: cached)