mirror of
https://github.com/semaphore-protocol/semaphore.git
synced 2026-01-08 06:14:06 -05:00
fix: improve error handling in toBigInt function (#1025)
* fix: improve error handling in toBigInt function * Update packages/proof/src/to-bigint.ts Co-authored-by: John Guilding <54913924+JohnGuilding@users.noreply.github.com> --------- Co-authored-by: John Guilding <54913924+JohnGuilding@users.noreply.github.com>
This commit is contained in:
@@ -15,6 +15,6 @@ export default function toBigInt(value: BigNumberish | Uint8Array | string): big
|
||||
return _toBigInt(encodeBytes32String(value))
|
||||
}
|
||||
|
||||
throw TypeError(error.message)
|
||||
throw TypeError(error instanceof Error ? error.message : error.toString())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user