- {subwalletApps.length} /{" "}
- {albyMe?.subscription.plan_code ? "∞" : 3}
+ {subwalletAppsData.totalCount} /{" "}
+ {albyMe?.subscription.plan_code ? "∞" : MAX_FREE_SUBWALLETS}
{isSufficientlyBacked ? (
@@ -202,7 +203,7 @@ export function SubwalletList() {
diff --git a/frontend/src/types.ts b/frontend/src/types.ts
index 6b1930dd..cdf4e8a6 100644
--- a/frontend/src/types.ts
+++ b/frontend/src/types.ts
@@ -640,6 +640,7 @@ export type OnchainTransaction = {
export type ListAppsResponse = {
apps: App[];
totalCount: number;
+ totalBalance?: number;
};
export type ListTransactionsResponse = {
diff --git a/nip47/controllers/get_info_controller.go b/nip47/controllers/get_info_controller.go
index 5800a266..a81ab112 100644
--- a/nip47/controllers/get_info_controller.go
+++ b/nip47/controllers/get_info_controller.go
@@ -91,7 +91,7 @@ func (controller *nip47Controller) HandleGetInfoEvent(ctx context.Context, nip47
if !app.Isolated {
lightningAddress, _ := controller.albyOAuthService.GetLightningAddress()
responsePayload.LightningAddress = &lightningAddress
- } else if metadata["app_store_app_id"] == constants.SUBWALLET_APPSTORE_APP_ID && metadata["lud16"] != nil {
+ } else if metadata[constants.METADATA_APPSTORE_APP_ID_KEY] == constants.SUBWALLET_APPSTORE_APP_ID && metadata["lud16"] != nil {
lightningAddress := metadata["lud16"].(string)
responsePayload.LightningAddress = &lightningAddress
}
diff --git a/nip47/controllers/get_info_controller_test.go b/nip47/controllers/get_info_controller_test.go
index d3bf0c6d..73289873 100644
--- a/nip47/controllers/get_info_controller_test.go
+++ b/nip47/controllers/get_info_controller_test.go
@@ -85,8 +85,8 @@ func TestHandleGetInfoEvent_SubwalletNoPermission(t *testing.T) {
lightningAddress := "hello@getalby.com"
metadata := map[string]interface{}{
- "app_store_app_id": constants.SUBWALLET_APPSTORE_APP_ID,
- "lud16": lightningAddress,
+ constants.METADATA_APPSTORE_APP_ID_KEY: constants.SUBWALLET_APPSTORE_APP_ID,
+ "lud16": lightningAddress,
}
svc.Cfg.SetUpdate("LNBackendType", config.LDKBackendType, "")
@@ -248,9 +248,9 @@ func TestHandleGetInfoEvent_SubwalletWithMetadata(t *testing.T) {
lightningAddress := "hello@getalby.com"
metadata := map[string]interface{}{
- "app_store_app_id": constants.SUBWALLET_APPSTORE_APP_ID,
- "lud16": lightningAddress,
- "a": 123,
+ constants.METADATA_APPSTORE_APP_ID_KEY: constants.SUBWALLET_APPSTORE_APP_ID,
+ "lud16": lightningAddress,
+ "a": 123,
}
svc.Cfg.SetUpdate("LNBackendType", config.LDKBackendType, "")