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:
parent
911cb59b4b
commit
99c9cd3e87
@ -9,9 +9,5 @@ export function generateDid(nftAddress: string, chainId: number): string {
|
||||
}
|
||||
|
||||
export function getHash(data: any): string {
|
||||
try {
|
||||
return sha256(data).toString()
|
||||
} catch (e) {
|
||||
LoggerInstance.error('getHash error: ', e.message)
|
||||
}
|
||||
return sha256(data).toString()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user