Fix class constructors
This commit is contained in:
parent
fabd1d6c9d
commit
74375bfedf
11 changed files with 101 additions and 125 deletions
ts_src
|
@ -182,17 +182,10 @@ export class Transaction {
|
|||
return true;
|
||||
}
|
||||
|
||||
version: number;
|
||||
locktime: number;
|
||||
ins: Input[];
|
||||
outs: OpenOutput[];
|
||||
|
||||
constructor() {
|
||||
this.version = 1;
|
||||
this.locktime = 0;
|
||||
this.ins = [];
|
||||
this.outs = [];
|
||||
}
|
||||
version: number = 1;
|
||||
locktime: number = 0;
|
||||
ins: Input[] = [];
|
||||
outs: OpenOutput[] = [];
|
||||
|
||||
isCoinbase(): boolean {
|
||||
return (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue