Display coinbase and op return messages all the time.
This commit is contained in:
@@ -6,6 +6,12 @@ import { Pipe, PipeTransform } from '@angular/core';
|
||||
export class Hex2asciiPipe implements PipeTransform {
|
||||
|
||||
transform(hex: string): string {
|
||||
const opPush = hex.split(' ').filter((_, i, a) => i > 0 && /^OP_PUSH/.test(a[i - 1]));
|
||||
|
||||
if (opPush[0]) {
|
||||
hex = opPush[0];
|
||||
}
|
||||
|
||||
if (!hex) {
|
||||
return '';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user