mirror of
https://github.com/mempool/mempool.git
synced 2025-02-24 14:50:52 +01:00
parent
5ff5275b36
commit
c62059c0f4
1 changed files with 1 additions and 1 deletions
|
@ -5,6 +5,6 @@ import { Pipe, PipeTransform } from '@angular/core';
|
|||
})
|
||||
export class Decimal2HexPipe implements PipeTransform {
|
||||
transform(decimal: number): string {
|
||||
return `0x` + decimal.toString(16);
|
||||
return `0x` + ( decimal.toString(16) ).padStart(8, '0');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue