From f0e96bd41ea7932b65407d82d70dd88803732088 Mon Sep 17 00:00:00 2001 From: benk10 Date: Tue, 17 Sep 2024 07:17:31 +0400 Subject: [PATCH] Fix network sent to server --- src-tauri/src/channel.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src-tauri/src/channel.rs b/src-tauri/src/channel.rs index baba238..f59f3a4 100644 --- a/src-tauri/src/channel.rs +++ b/src-tauri/src/channel.rs @@ -106,7 +106,11 @@ impl Channel { if let Some(client) = &self.client { let mut data = json!({"room": room, "data": encrypted}); if let Some(network) = network { - data["network"] = serde_json::Value::String(network.to_string()); + data["network"] = serde_json::Value::String(if network == "bitcoin" { + "MAINNET".to_string() + } else { + "TESTNET".to_string() + }); } client .emit(event, data)