style: apply prettier
This commit is contained in:
parent
c74ab67ccf
commit
03632f1507
24 changed files with 2321 additions and 1958 deletions
ts_src/templates
|
@ -1,17 +1,16 @@
|
|||
// OP_RETURN {data}
|
||||
import * as bscript from '../script'
|
||||
const OPS = bscript.OPS
|
||||
import * as bscript from '../script';
|
||||
const OPS = bscript.OPS;
|
||||
|
||||
export function check (script: Buffer | Array<number | Buffer>): boolean {
|
||||
const buffer = bscript.compile(script)
|
||||
export function check(script: Buffer | Array<number | Buffer>): boolean {
|
||||
const buffer = bscript.compile(script);
|
||||
|
||||
return buffer.length > 1 &&
|
||||
buffer[0] === OPS.OP_RETURN
|
||||
return buffer.length > 1 && buffer[0] === OPS.OP_RETURN;
|
||||
}
|
||||
check.toJSON = function () { return 'null data output' }
|
||||
check.toJSON = function() {
|
||||
return 'null data output';
|
||||
};
|
||||
|
||||
const output = { check }
|
||||
const output = { check };
|
||||
|
||||
export {
|
||||
output
|
||||
}
|
||||
export { output };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue