mirror of
https://github.com/ethereum/consensus-specs.git
synced 2026-02-02 12:34:55 -05:00
Merge pull request #413 from benjaminion/vyper-const
Replace numeric constant with symbolic in Vyper contract
This commit is contained in:
@@ -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]))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user