File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -55,12 +55,12 @@ describe('MerkleProof', function () {
55
55
const merkleTree = StandardMerkleTree . of ( toElements ( 'abc' ) , [ 'string' ] ) ;
56
56
57
57
const root = merkleTree . root ;
58
- const leaf = merkleTree . leafHash ( [ 'a' ] ) ;
58
+ const hash = merkleTree . leafHash ( [ 'a' ] ) ;
59
59
const proof = merkleTree . getProof ( [ 'a' ] ) ;
60
- const badProof = proof . slice ( 0 , proof . length - 5 ) ;
60
+ const badProof = proof . slice ( 0 , - 1 ) ;
61
61
62
- expect ( await this . mock . $verify ( badProof , root , leaf ) ) . to . be . false ;
63
- expect ( await this . mock . $verifyCalldata ( badProof , root , leaf ) ) . to . be . false ;
62
+ expect ( await this . mock . $verify ( badProof , root , hash ) ) . to . be . false ;
63
+ expect ( await this . mock . $verifyCalldata ( badProof , root , hash ) ) . to . be . false ;
64
64
} ) ;
65
65
} ) ;
66
66
You can’t perform that action at this time.
0 commit comments