my commit

to 0.7

update constructor calls in tests

remove 0.5 from config
This commit is contained in:
mirru2532 2021-10-26 21:19:02 +02:00
parent 77af0c5bdd
commit 09423d692b
16 changed files with 15104 additions and 60 deletions

View file

@ -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