diff --git a/specs/core/0_beacon-chain.md b/specs/core/0_beacon-chain.md index 23b35fc6f..2f5b1b3f9 100644 --- a/specs/core/0_beacon-chain.md +++ b/specs/core/0_beacon-chain.md @@ -675,7 +675,7 @@ def deposit(deposit_input: bytes[2048]): # add deposit to merkle tree self.deposit_tree[index] = sha3(deposit_data) - for i in range(32): # DEPOSIT_CONTRACT_TREE_DEPTH (range of constant var not yet supported) + for i in range(DEPOSIT_CONTRACT_TREE_DEPTH): index /= 2 self.deposit_tree[index] = sha3(concat(self.deposit_tree[index * 2], self.deposit_tree[index * 2 + 1]))