Skip to content

Commit

Permalink
change xdc to 0x
Browse files Browse the repository at this point in the history
  • Loading branch information
wanwiset25 committed Jan 4, 2024
1 parent cd4b91f commit baeb885
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/utils/formatter.ts
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down

0 comments on commit baeb885

Please sign in to comment.