From 454f785878176e2324062c0c73db5a3f68d5b73f Mon Sep 17 00:00:00 2001 From: Willian Mitsuda Date: Thu, 18 Nov 2021 15:51:08 -0300 Subject: [PATCH] Remove unnecessary code --- src/components/InternalCreate.tsx | 64 ++++++++++++------------- src/components/InternalSelfDestruct.tsx | 5 +- src/components/InternalTransfer.tsx | 2 +- 3 files changed, 32 insertions(+), 39 deletions(-) diff --git a/src/components/InternalCreate.tsx b/src/components/InternalCreate.tsx index dcf050f..5a6a543 100644 --- a/src/components/InternalCreate.tsx +++ b/src/components/InternalCreate.tsx @@ -16,38 +16,34 @@ const InternalCreate: React.FC = ({ txData, internalOp, resolvedAddresses, -}) => { - return ( - <> -
- - CREATE - - Contract -
- - - -
- - (Creator:{" "} - - - - ) - -
- - ); -}; +}) => ( +
+ + CREATE + + Contract +
+ + + +
+ + (Creator:{" "} + + + + ) + +
+); -export default React.memo(InternalCreate); +export default InternalCreate; diff --git a/src/components/InternalSelfDestruct.tsx b/src/components/InternalSelfDestruct.tsx index be71afd..794b987 100644 --- a/src/components/InternalSelfDestruct.tsx +++ b/src/components/InternalSelfDestruct.tsx @@ -8,9 +8,6 @@ import { TransactionData, InternalOperation } from "../types"; import { ResolvedAddresses } from "../api/address-resolver"; import TransactionAddress from "./TransactionAddress"; -const CHI_ADDRESS = "0x0000000000004946c0e9F43F4Dee607b0eF1fA1c"; -const GST2_ADDRESS = "0x0000000000b3F879cb30FE243b4Dfee438691c04"; - type InternalSelfDestructProps = { txData: TransactionData; internalOp: InternalOperation; @@ -81,4 +78,4 @@ const InternalSelfDestruct: React.FC = ({ ); }; -export default React.memo(InternalSelfDestruct); +export default InternalSelfDestruct; diff --git a/src/components/InternalTransfer.tsx b/src/components/InternalTransfer.tsx index 1dce1db..bf46778 100644 --- a/src/components/InternalTransfer.tsx +++ b/src/components/InternalTransfer.tsx @@ -71,4 +71,4 @@ const InternalTransfer: React.FC = ({ ); }; -export default React.memo(InternalTransfer); +export default InternalTransfer;