1
0
mirror of https://github.com/oceanprotocol/ocean.js.git synced 2024-11-26 20:39:05 +01:00
This commit is contained in:
Bogdan Fazakas 2023-04-27 13:20:41 +03:00
parent 05c4030afd
commit 304b53ad16

View File

@ -122,9 +122,8 @@ export class Provider {
[ethers.utils.hexlify(ethers.utils.toUtf8Bytes(message))]
)
const messageHashBytes = ethers.utils.arrayify(consumerMessage)
const chainId = await signer.getChainId()
if (chainId == 8996) {
if (chainId === 8996) {
return await (signer as providers.JsonRpcSigner)._legacySignMessage(
messageHashBytes
)