From 47a45e2c22e9eeb8a4605e62137ed3538e4fbb07 Mon Sep 17 00:00:00 2001
From: Pete Watters <2938440+pete-watters@users.noreply.github.com>
Date: Fri, 8 Sep 2023 10:23:50 +0100
Subject: [PATCH] chore: disable truncateMiddle temporarily
---
.../components/structured-data-content.tsx | 7 ++++++-
.../transaction-error/error-messages.tsx | 19 ++++++++++++-------
2 files changed, 18 insertions(+), 8 deletions(-)
diff --git a/src/app/pages/stacks-message-signing-request/components/structured-data-content.tsx b/src/app/pages/stacks-message-signing-request/components/structured-data-content.tsx
index 41e0b0a7c24..067258a6583 100644
--- a/src/app/pages/stacks-message-signing-request/components/structured-data-content.tsx
+++ b/src/app/pages/stacks-message-signing-request/components/structured-data-content.tsx
@@ -1,5 +1,7 @@
import { ChainID } from '@stacks/common';
+import { StructuredMessageDataDomain } from '@shared/signature/signature-types';
+
import { getStructuredDataPayloadFromToken } from '@app/common/signature/requests';
import { NoFeesWarningRow } from '@app/components/no-fees-warning-row';
import { SignMessageActions } from '@app/features/message-signer/stacks-sign-message-action';
@@ -20,11 +22,14 @@ export function SignatureRequestStructuredDataContent({
const appName = signatureRequest.appDetails?.name;
return (
<>
-
+
signMessage({ messageType: 'structured', message, domain })}
/>
diff --git a/src/app/pages/transaction-request/components/transaction-error/error-messages.tsx b/src/app/pages/transaction-request/components/transaction-error/error-messages.tsx
index 04da6a69e16..529e2fb4c3c 100644
--- a/src/app/pages/transaction-request/components/transaction-error/error-messages.tsx
+++ b/src/app/pages/transaction-request/components/transaction-error/error-messages.tsx
@@ -14,7 +14,8 @@ import { useDrawers } from '@app/common/hooks/use-drawers';
import { useScrollLock } from '@app/common/hooks/use-scroll-lock';
import { stacksValue } from '@app/common/stacks-utils';
// PETE fix this now merging my PRs
-import { truncateMiddle } from '@app/common/utils/stacks-ui';
+// #4164 FIXME migrate truncateMiddle
+// import { truncateMiddle } from '@app/common/utils/stacks-ui';
//FIXME - PETE rebase onto 1 PR soon to solve this
import { LeatherButton } from '@app/components/button/button';
import { SpaceBetween } from '@app/components/layout/space-between';
@@ -110,9 +111,11 @@ export const NoContractErrorMessage = memo(props => {
return (
);
@@ -126,9 +129,11 @@ export const IncorrectContractAddressMessage = memo(props => {
return (
);