Skip to content

Commit

Permalink
rename setUp → setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Amxx committed Feb 19, 2024
1 parent 91f7057 commit 088fa8c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion contracts/mocks/MerkleTreeMock.sol
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ contract MerkleTreeMock {
MerkleTree.Bytes32MerkleTree private _tree;

constructor(uint256 _depth, bytes32 _zero) {
_tree.setUp(_depth, _zero);
_tree.setup(_depth, _zero);
}

function insert(bytes32 leaf) public returns (uint256) {
Expand Down
6 changes: 3 additions & 3 deletions contracts/utils/structs/MerkleTree.sol
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ library MerkleTree {
/**
* @dev Initialize using the default hash
*/
function setUp(Bytes32MerkleTree storage self, uint256 depth, bytes32 zero) internal {
return setUp(self, depth, zero, Hashes.stdPairHash);
function setup(Bytes32MerkleTree storage self, uint256 depth, bytes32 zero) internal {
return setup(self, depth, zero, Hashes.stdPairHash);
}

/**
Expand All @@ -68,7 +68,7 @@ library MerkleTree {
* - All leaves are initialize to `zero`
* - Hashing function for a pair of leaves is fnHash.
*/
function setUp(
function setup(
Bytes32MerkleTree storage self,
uint256 depth,
bytes32 zero,
Expand Down

0 comments on commit 088fa8c

Please sign in to comment.