Skip to content

Commit

Permalink
implement warning messages for unimplemented methods in MassaStationW…
Browse files Browse the repository at this point in the history
…allet
  • Loading branch information
Ben-Rey committed Nov 28, 2024
1 parent 6f95a9e commit 98b670e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/massaStation/MassaStationWallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,18 +162,30 @@ export class MassaStationWallet implements Wallet {
}

public async connect(): Promise<boolean> {
console.warn(

Check warning on line 165 in src/massaStation/MassaStationWallet.ts

View workflow job for this annotation

GitHub Actions / format

Unexpected console statement

Check warning on line 165 in src/massaStation/MassaStationWallet.ts

View workflow job for this annotation

GitHub Actions / format / format

Unexpected console statement
"Warning: 'connect' is not implemented. Returning true because the station is always connected.",
);
return true;
}

public async disconnect(): Promise<boolean> {
console.warn(

Check warning on line 172 in src/massaStation/MassaStationWallet.ts

View workflow job for this annotation

GitHub Actions / format

Unexpected console statement

Check warning on line 172 in src/massaStation/MassaStationWallet.ts

View workflow job for this annotation

GitHub Actions / format / format

Unexpected console statement
"Warning: 'disconnect' is not implemented. Returning true because the station cannot be disconnected.",
);
return true;
}

public connected(): boolean {
console.warn(

Check warning on line 179 in src/massaStation/MassaStationWallet.ts

View workflow job for this annotation

GitHub Actions / format

Unexpected console statement

Check warning on line 179 in src/massaStation/MassaStationWallet.ts

View workflow job for this annotation

GitHub Actions / format / format

Unexpected console statement
"Warning: 'connected' is not implemented. Returning true because the station is always connected when running.",
);
return true;
}

public enabled(): boolean {
console.warn(

Check warning on line 186 in src/massaStation/MassaStationWallet.ts

View workflow job for this annotation

GitHub Actions / format

Unexpected console statement

Check warning on line 186 in src/massaStation/MassaStationWallet.ts

View workflow job for this annotation

GitHub Actions / format / format

Unexpected console statement
"Warning: 'enabled' is not implemented. Returning true because the station is always enabled.",
);
return true;
}
}

0 comments on commit 98b670e

Please sign in to comment.