bug fix: floData length issue

Fixed: floData with 16 char didnot sent
Adjusted max floData size to 1040
This commit is contained in:
Sai Raj 2020-09-11 17:21:27 +05:30 committed by GitHub
parent ac5d4805e5
commit 3439ea5f4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();
}
</script>
</body>
</body>