1
0
mirror of https://github.com/oceanprotocol/ocean.js.git synced 2024-11-26 20:39:05 +01:00

Remove try...catch from DdoHelpers

This commit is contained in:
Miquel A. Cabot 2022-06-21 11:49:06 +02:00
parent 911cb59b4b
commit 99c9cd3e87

View File

@ -9,9 +9,5 @@ export function generateDid(nftAddress: string, chainId: number): string {
} }
export function getHash(data: any): string { export function getHash(data: any): string {
try { return sha256(data).toString()
return sha256(data).toString()
} catch (e) {
LoggerInstance.error('getHash error: ', e.message)
}
} }