Skip to content

Commit 25cbce2

Browse files
committed
Fix
1 parent dbd447f commit 25cbce2

File tree

6 files changed

+41
-1
lines changed

6 files changed

+41
-1
lines changed

src/app/hardware/ledger/btc.ts

Whitespace-only changes.

src/app/hardware/ledger/ledger.ts

Whitespace-only changes.

src/app/hardware/ledger/psbt.ts

Whitespace-only changes.

src/app/hardware/ledger/transaction.ts

Whitespace-only changes.

src/app/hardware/portal/hww.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { multiply, NFC, Poll, Network, Bitcoin as BitcoinType, Signet as SignetType } from 'libportal-react-native';
1+
import { multiply, NFC, Poll, Network, Bitcoin as BitcoinType, GetStatus as GetStatusType } from 'libportal-react-native';
22
import { GetStatus as GetStatusType } from '../types'; // Assuming GetStatus is a type or object from the 'types' module
33
export class Hww {
44
static multiply(a: number, b: number): Promise<number> {

src/app/hardware/portal/transaction.ts

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,45 @@
11
import { ITransaction } from './ITransaction';
22

3+
export class Transaction implements ITransaction {
4+
id: number;
5+
name: string;
6+
description: string;
7+
amount: number;
8+
date: Date;
9+
type: string;
10+
category: string;
11+
account: string;
12+
status: string;
13+
createdAt: Date;
14+
updatedAt: Date;
15+
16+
// Constructor to initialize the transaction properties
17+
constructor(
18+
id: number,
19+
name: string,
20+
description: string,
21+
amount: number,
22+
date: Date,
23+
type: string,
24+
category: string,
25+
account: string,
26+
status: string,
27+
createdAt: Date,
28+
updatedAt: Date
29+
) {
30+
this.id = id;
31+
this.name = name;
32+
this.description = description;
33+
this.amount = amount;
34+
this.date = date;
35+
this.type = type;
36+
this.category = category;
37+
this.account = account;
38+
this.status = status;
39+
this.createdAt = createdAt;
40+
this.updatedAt = updatedAt;
41+
}
42+
}
343
export class ITransaction implements ITransaction {
444
id: number;
545
name: string;

0 commit comments

Comments
 (0)