From 47cb54a06cd1cef19b5c756b88899cd5dba7a6df Mon Sep 17 00:00:00 2001 From: Son Huynh Date: Tue, 11 Jun 2024 22:02:48 +0700 Subject: [PATCH] [featfix][547] fix Display and Search uppercase EVM address --- .../token-table/token-table.component.html | 2 +- .../token-table/token-table.component.ts | 8 ++- .../evm-contracts-detail.component.html | 2 +- .../evm-token-content.component.html | 11 +++-- .../evm-token-content.component.ts | 9 ++-- src/app/pages/evm-token/evm-token.module.ts | 3 +- .../non-fungible-tokens.component.html | 2 +- .../non-fungible-tokens.component.ts | 3 +- .../evm-message/evm-message.component.html | 49 +++++++++++++------ 9 files changed, 61 insertions(+), 28 deletions(-) diff --git a/src/app/pages/account/account-detail/token-table/token-table.component.html b/src/app/pages/account/account-detail/token-table/token-table.component.html index 904025d0e..9f0cc4b97 100644 --- a/src/app/pages/account/account-detail/token-table/token-table.component.html +++ b/src/app/pages/account/account-detail/token-table/token-table.component.html @@ -133,7 +133,7 @@

Fungible Tokens ({{ pageData?
Contract EVM Contract

}}
-
+
diff --git a/src/app/pages/evm-token/evm-token-content/evm-token-content.component.html b/src/app/pages/evm-token/evm-token-content/evm-token-content.component.html index 3f935c5c3..69278589c 100644 --- a/src/app/pages/evm-token/evm-token-content/evm-token-content.component.html +++ b/src/app/pages/evm-token/evm-token-content/evm-token-content.component.html @@ -5,8 +5,11 @@ FILTER BY TOKEN TXN HASH

- - {{ textSearch }} + + {{ textSearch | beautyAddress }}
@@ -24,8 +27,8 @@
0) { this.redirectPage(`/token/${this.linkAddress}`, { - a: this.searchTemp, + a: this.beautyAddress.transform(this.searchTemp), }); } diff --git a/src/app/pages/evm-token/evm-token.module.ts b/src/app/pages/evm-token/evm-token.module.ts index 5db8eaee4..19a1b7f90 100644 --- a/src/app/pages/evm-token/evm-token.module.ts +++ b/src/app/pages/evm-token/evm-token.module.ts @@ -33,6 +33,7 @@ import { EvmTokenDetailComponent } from './evm-token-detail/evm-token-detail.com import { EvmTokenOverviewComponent } from './evm-token-overview/evm-token-overview.component'; import { EvmTokenRoutingModule } from './evm-token-routing.module'; import { EvmTokenSummaryComponent } from './evm-token-summary/evm-token-summary.component'; +import { EvmAddressPipe } from 'src/app/core/pipes/evm-address.pipe'; @NgModule({ declarations: [ @@ -74,6 +75,6 @@ import { EvmTokenSummaryComponent } from './evm-token-summary/evm-token-summary. ClipboardModule, EvmContractsModule, ], - providers: [provideEnvironmentNgxMask(MASK_CONFIG)], + providers: [provideEnvironmentNgxMask(MASK_CONFIG), EvmAddressPipe], }) export class EvmTokenModule {} diff --git a/src/app/pages/tokens/non-fungible-tokens/non-fungible-tokens.component.html b/src/app/pages/tokens/non-fungible-tokens/non-fungible-tokens.component.html index 2094eb911..f9ed9745b 100644 --- a/src/app/pages/tokens/non-fungible-tokens/non-fungible-tokens.component.html +++ b/src/app/pages/tokens/non-fungible-tokens/non-fungible-tokens.component.html @@ -116,7 +116,7 @@

Non-Fungible Tokens (NFT)

{{ method }}
-
Contract Address
-
@@ -22,19 +25,25 @@
- - - @@ -94,8 +103,11 @@
-
+
{{ transaction?.inputData }}
@@ -105,11 +117,17 @@
- - @@ -120,8 +138,11 @@
Transaction Receipt Event Logs ({{ eventLog?.length }})
- +
@@ -135,4 +156,4 @@
-
\ No newline at end of file +