From baeb885e45034f32fe83cdda4c43074de027a4ce Mon Sep 17 00:00:00 2001 From: wanwiset25 Date: Thu, 4 Jan 2024 19:18:08 +0400 Subject: [PATCH] change xdc to 0x --- frontend/src/utils/formatter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/utils/formatter.ts b/frontend/src/utils/formatter.ts index d7b562c..a6064b4 100644 --- a/frontend/src/utils/formatter.ts +++ b/frontend/src/utils/formatter.ts @@ -1,7 +1,7 @@ import BigNumber from 'bignumber.js'; export function formatHashFromNonZero(hash: string): string { - return formatHash(hash.replace(/0x[0]*/, 'xdc')); + return formatHash(hash.replace(/0x[0]*/, '0x')); } export function formatHash(hash: string): string {