From 5d273a98ced9661fabea5b8de5f3920af6abe38e Mon Sep 17 00:00:00 2001 From: alexcos20 Date: Tue, 14 Apr 2020 15:01:39 +0300 Subject: [PATCH] fix brizo --- src/ocean/utils/SignatureUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ocean/utils/SignatureUtils.ts b/src/ocean/utils/SignatureUtils.ts index cb75f13..afa27c0 100644 --- a/src/ocean/utils/SignatureUtils.ts +++ b/src/ocean/utils/SignatureUtils.ts @@ -48,7 +48,7 @@ export class SignatureUtils { this.web3.currentProvider && (this.web3.currentProvider as any).isMetaMask try { - const hash = await this.getHash(text) + const hash = this.web3.utils.utf8ToHex(text); return await this.web3.eth.personal.sign(hash, publicKey, password) } catch (e) { if (isMetaMask) {