diff --git a/app/ts/components/pages/PersonalSign.tsx b/app/ts/components/pages/PersonalSign.tsx
index 281e4588..e58ce998 100644
--- a/app/ts/components/pages/PersonalSign.tsx
+++ b/app/ts/components/pages/PersonalSign.tsx
@@ -122,29 +122,33 @@ const decodeMessage = (message: string) => {
return message
}
+function isNinetyFivePercentNumbersOrASCII(input: string): boolean {
+ const asciiCount = input.split('').filter(char => char.charCodeAt(0) <= 127).length
+ const numberCount = input.split('').filter(char => !isNaN(Number(char))).length
+ const validCount = asciiCount + numberCount
+ return validCount / input.length >= 0.95
+}
+
function SignRequest({ visualizedPersonalSignRequest, renameAddressCallBack, editEnsNamedHashCallBack }: SignRequestParams) {
switch (visualizedPersonalSignRequest.type) {
case 'NotParsed': {
- if (visualizedPersonalSignRequest.method === 'personal_sign') return (
- { visualizedPersonalSignRequest.message } { decodeMessage(visualizedPersonalSignRequest.message) }
{ visualizedPersonalSignRequest.message }
-{ visualizedPersonalSignRequest.message }
+{ decoded }
+{ dataStringWith0xStart(input) }
No ABI available for
@@ -37,7 +37,7 @@ export function TransactionInput({ parsedInputData, input, to, addressMetaData, > }{ dataStringWith0xStart(input) }