Index asciiScriptSig and display it in /mining/blocks

This commit is contained in:
nymkappa
2022-03-15 23:33:51 +01:00
parent 9c60c7ba79
commit 94dbec46cf
8 changed files with 59 additions and 17 deletions

View File

@@ -15,7 +15,7 @@ export class Hex2asciiPipe implements PipeTransform {
if (!hex) {
return '';
}
let bytes: number[] = [];
const bytes: number[] = [];
for (let i = 0; i < hex.length; i += 2) {
bytes.push(parseInt(hex.substr(i, 2), 16));
}