From 02206d681ed07836bed0c36d9da5f211313e040d Mon Sep 17 00:00:00 2001 From: Jesse de Wit Date: Mon, 2 Dec 2024 15:45:17 +0100 Subject: [PATCH] set swap version number The version number for swaps was not set. --- libs/sdk-common/src/grpc/proto/breez.proto | 1 + libs/sdk-core/src/swap_in/swap.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/libs/sdk-common/src/grpc/proto/breez.proto b/libs/sdk-common/src/grpc/proto/breez.proto index 42db71541..9bfc8c95f 100644 --- a/libs/sdk-common/src/grpc/proto/breez.proto +++ b/libs/sdk-common/src/grpc/proto/breez.proto @@ -234,6 +234,7 @@ message AddFundInitRequest { string notificationToken = 2; bytes pubkey = 3; bytes hash = 4; + int32 version = 5; } message AddFundInitReply { diff --git a/libs/sdk-core/src/swap_in/swap.rs b/libs/sdk-core/src/swap_in/swap.rs index 13904bf92..56b9aa330 100644 --- a/libs/sdk-core/src/swap_in/swap.rs +++ b/libs/sdk-core/src/swap_in/swap.rs @@ -52,6 +52,7 @@ impl SwapperAPI for BreezServer { pubkey: payer_pubkey.clone(), node_id, notification_token: "".to_string(), + version: 1, }; let result = with_connection_retry!(client.add_fund_init(req.clone()))