Skip to content

[BUG] Better error message for Circom commitments #303

@AhmedKorim

Description

@AhmedKorim

Describe the bug
Some note methods throw an error related to secret length for Circom notes, dApp uses generateCircomCommitment function,
getLeafCommitment, and getUtxo should throw a typed error instead of failing
To Reproduce
Steps to reproduce the behavior:
Try to call getUtxo or getLeafCommitment method of Note

Expected behavior
Should throw a typed error EX(Can't generate a leaf commitment of Circom note)

Metadata

Metadata

Assignees

Labels

bug 🪲Something isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions