From 11bed910253fecb6634350a690db9f63b41e2f9f Mon Sep 17 00:00:00 2001 From: yann300 Date: Thu, 24 Jun 2021 09:59:46 +0200 Subject: [PATCH] change comparison treshold --- libs/remix-lib/src/util.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/remix-lib/src/util.ts b/libs/remix-lib/src/util.ts index f14e48174a..58f5d875dd 100644 --- a/libs/remix-lib/src/util.ts +++ b/libs/remix-lib/src/util.ts @@ -225,8 +225,9 @@ export function compareByteCode (code1, code2) { if (code1 && code2) { const compare = stringSimilarity.compareTwoStrings(code1, code2) - return compare > 0.5 + return compare > 0.93 } + return false } /* util extracted out from remix-ide. @TODO split this file, cause it mix real util fn with solidity related stuff ... */