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:
parent
795f8494f9
commit
5d273a98ce
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user