From 3439ea5f4a6c656120ea75eefdd8693aacf12ac0 Mon Sep 17 00:00:00 2001 From: Sai Raj <39055732+sairajzero@users.noreply.github.com> Date: Fri, 11 Sep 2020 17:21:27 +0530 Subject: [PATCH] bug fix: floData length issue Fixed: floData with 16 char didnot sent Adjusted max floData size to 1040 --- index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 3c471b6..4a4e6ae 100644 --- a/index.html +++ b/index.html @@ -6363,12 +6363,12 @@ floDataCount = this.floData.length; //flochange -- creating unique data character count logic for floData. This string is prefixed before actual floData string in Raw Transaction - if (floDataCount <= 16) { + if (floDataCount < 16) { floDataCountString = floDataCount.toString(16); floDataCountString = "0"+ floDataCountString; } else if (floDataCount < 253) { floDataCountString = floDataCount.toString(16); - } else if (floDataCount <= 1023) { + } else if (floDataCount <= 1040) { floDataCountAdjusted = (floDataCount - 253) + parseInt("0xfd00fd"); floDataCountStringAdjusted = floDataCountAdjusted.toString(16); floDataCountString = floDataCountStringAdjusted.substr(0,2)+ floDataCountStringAdjusted.substr(4,2)+ floDataCountStringAdjusted.substr(2,2); @@ -8950,4 +8950,4 @@ setElements(); } - \ No newline at end of file +