From 163cef69394a956a5bdd48ccb3564194a9d78530 Mon Sep 17 00:00:00 2001 From: Willian Mitsuda Date: Mon, 19 Jul 2021 04:19:24 -0300 Subject: [PATCH] Add selfdestruct decoration --- src/components/DecoratedAddressLink.tsx | 6 +++++- src/components/InternalSelfDestruct.tsx | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/components/DecoratedAddressLink.tsx b/src/components/DecoratedAddressLink.tsx index 2579848..9dcd416 100644 --- a/src/components/DecoratedAddressLink.tsx +++ b/src/components/DecoratedAddressLink.tsx @@ -15,6 +15,7 @@ type DecoratedAddressLinkProps = { text?: string; addressCtx?: AddressContext; miner?: boolean; + selfDestruct?: boolean; }; const DecoratedAddresssLink: React.FC = ({ @@ -24,6 +25,7 @@ const DecoratedAddresssLink: React.FC = ({ text, addressCtx, miner, + selfDestruct, }) => { const mint = addressCtx === AddressContext.FROM && address === ZERO_ADDRESS; const burn = addressCtx === AddressContext.TO && address === ZERO_ADDRESS; @@ -32,7 +34,9 @@ const DecoratedAddresssLink: React.FC = ({
{mint && ( diff --git a/src/components/InternalSelfDestruct.tsx b/src/components/InternalSelfDestruct.tsx index bc8eba8..b717d38 100644 --- a/src/components/InternalSelfDestruct.tsx +++ b/src/components/InternalSelfDestruct.tsx @@ -36,11 +36,11 @@ const InternalSelfDestruct: React.FC = ({ Contract
- +
{network?.chainId === 1 && transfer.to === CHI_ADDRESS && ( - (CHI Gastoken) + (Chi Gastoken) )} {network?.chainId === 1 && transfer.to === GST2_ADDRESS && ( (GST2 Gastoken)