Display P2PK instead of OP_RETURN

fixes #161
This commit is contained in:
softsimon
2020-11-16 16:21:37 +07:00
parent 75e770f50c
commit bff1e1b97b
2 changed files with 8 additions and 2 deletions

View File

@@ -9,9 +9,12 @@ export class ScriptpubkeyTypePipe implements PipeTransform {
switch (value) {
case 'fee':
return 'Transaction fee';
case 'p2pk':
return 'P2PK';
case 'op_return':
return 'OP_RETURN';
default:
return 'OP_RETURN';
return value.toUpperCase();
}
}