Fix class constructors

This commit is contained in:
junderw 2019-03-20 15:25:48 +09:00
parent fabd1d6c9d
commit 74375bfedf
No known key found for this signature in database
GPG key ID: B256185D3A971908
11 changed files with 101 additions and 125 deletions

View file

@ -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 (