From 61f7e37eff777179c51551627a783a374ace21ea Mon Sep 17 00:00:00 2001 From: Ben Edgington Date: Tue, 8 Jan 2019 19:41:40 +0000 Subject: [PATCH] Replace numeric constant with symbolic in Vyper contract Vyper v0.1.0-beta.6 supports ranges with symbolic constants. --- specs/core/0_beacon-chain.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]))