From 6257823a4c0114a4ba02064a9656fe2a661b4fc1 Mon Sep 17 00:00:00 2001 From: bithalo <> Date: Wed, 17 Jul 2024 03:53:32 -0700 Subject: [PATCH] Update index.html --- index.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index 234d88d..df87252 100644 --- a/index.html +++ b/index.html @@ -5502,7 +5502,7 @@
if(myaccounts == offerData2.recipient && offerData2.status[1] == 0) { mode = 2; } - var mslen = parseInt(DOMPurify.sanitize(await DDEcontract.methods.getMessageLength(counterpartyAddress2).call())); + var mslen = parseInt(DOMPurify.sanitize(await DDEcontract.methods.getMessageLength(offerHash2, counterpartyAddress2).call())); var msIndex = localStorage.getItem(myaccounts + DDEaddy + offerHash2 + counterpartyAddress2 + 'lastMessageIndex') || 0; if(mslen > msIndex) { offerData2.newMessage = true; @@ -5724,7 +5724,7 @@ myhash = web3.utils.keccak256(inputString); offerData3.index = i; if(offerHash3 in notifications) { - var mslen2 = parseInt(DOMPurify.sanitize(await DDEcontract.methods.getMessageLength(counterpartyAddress3).call())); + var mslen2 = parseInt(DOMPurify.sanitize(await DDEcontract.methods.getMessageLength(offerHash3, counterpartyAddress3).call())); var msIndex2 = localStorage.getItem(myaccounts + DDEaddy + offerHash3 + counterpartyAddress3 + 'lastMessageIndex') || 0; if(mslen2 > msIndex2) { offerData3.newMessage = true; @@ -7551,7 +7551,7 @@