From 98b670e7ac592b6239bfadd449902f5c7106e981 Mon Sep 17 00:00:00 2001
From: BenRey
Date: Thu, 28 Nov 2024 09:52:45 +0100
Subject: [PATCH] implement warning messages for unimplemented methods in
MassaStationWallet
---
src/massaStation/MassaStationWallet.ts | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/src/massaStation/MassaStationWallet.ts b/src/massaStation/MassaStationWallet.ts
index e1b0597..30f2ada 100644
--- a/src/massaStation/MassaStationWallet.ts
+++ b/src/massaStation/MassaStationWallet.ts
@@ -162,18 +162,30 @@ export class MassaStationWallet implements Wallet {
}
public async connect(): Promise {
+ console.warn(
+ "Warning: 'connect' is not implemented. Returning true because the station is always connected.",
+ );
return true;
}
public async disconnect(): Promise {
+ console.warn(
+ "Warning: 'disconnect' is not implemented. Returning true because the station cannot be disconnected.",
+ );
return true;
}
public connected(): boolean {
+ console.warn(
+ "Warning: 'connected' is not implemented. Returning true because the station is always connected when running.",
+ );
return true;
}
public enabled(): boolean {
+ console.warn(
+ "Warning: 'enabled' is not implemented. Returning true because the station is always enabled.",
+ );
return true;
}
}