reorder vars

This commit is contained in:
poma 2019-11-06 13:52:00 +03:00
parent ac8fc08cc2
commit 61864ceda1
1 changed files with 4 additions and 4 deletions

View File

@ -23,12 +23,12 @@ contract MerkleTreeWithHistory {
// the following variables are made public for easier testing and debugging and
// are not supposed to be accessed in regular code
uint32 public constant ROOT_HISTORY_SIZE = 100;
bytes32[ROOT_HISTORY_SIZE] public roots;
uint32 public currentRootIndex = 0;
uint32 public nextIndex = 0;
bytes32[] public filledSubtrees;
bytes32[] public zeros;
uint32 public currentRootIndex = 0;
uint32 public nextIndex = 0;
uint32 public constant ROOT_HISTORY_SIZE = 100;
bytes32[ROOT_HISTORY_SIZE] public roots;
constructor(uint32 _treeLevels) public {
require(_treeLevels > 0, "_treeLevels should be greater than zero");