mirror of
https://github.com/tornadocash/tornado-core.git
synced 2025-07-31 10:58:51 -04:00
my commit
to 0.7 update constructor calls in tests remove 0.5 from config
This commit is contained in:
parent
77af0c5bdd
commit
09423d692b
16 changed files with 15104 additions and 60 deletions
|
@ -52,8 +52,7 @@ contract('MerkleTreeWithHistory', accounts => {
|
|||
prefix,
|
||||
)
|
||||
hasherInstance = await hasherContract.deployed()
|
||||
await MerkleTreeWithHistory.link(hasherContract, hasherInstance.address)
|
||||
merkleTreeWithHistory = await MerkleTreeWithHistory.new(levels)
|
||||
merkleTreeWithHistory = await MerkleTreeWithHistory.new(hasherInstance.address, levels)
|
||||
snapshotId = await takeSnapshot()
|
||||
})
|
||||
|
||||
|
@ -182,7 +181,7 @@ contract('MerkleTreeWithHistory', accounts => {
|
|||
|
||||
it('should reject if tree is full', async () => {
|
||||
const levels = 6
|
||||
const merkleTreeWithHistory = await MerkleTreeWithHistory.new(levels)
|
||||
const merkleTreeWithHistory = await MerkleTreeWithHistory.new(hasherInstance.address, levels)
|
||||
|
||||
for (let i = 0; i < 2**levels; i++) {
|
||||
await merkleTreeWithHistory.insert(toFixedHex(i+42)).should.be.fulfilled
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue