1
0
mirror of https://github.com/oceanprotocol-archive/squid-js.git synced 2024-02-02 15:31:51 +01:00

fix brizo

This commit is contained in:
alexcos20 2020-04-14 15:01:39 +03:00
parent 795f8494f9
commit 5d273a98ce

View File

@ -48,7 +48,7 @@ export class SignatureUtils {
this.web3.currentProvider && this.web3.currentProvider &&
(this.web3.currentProvider as any).isMetaMask (this.web3.currentProvider as any).isMetaMask
try { try {
const hash = await this.getHash(text) const hash = this.web3.utils.utf8ToHex(text);
return await this.web3.eth.personal.sign(hash, publicKey, password) return await this.web3.eth.personal.sign(hash, publicKey, password)
} catch (e) { } catch (e) {
if (isMetaMask) { if (isMetaMask) {