From 2a1b0bc651a2e0b3b81d08abbc21a22e15ae6fbf Mon Sep 17 00:00:00 2001 From: narekpetrosyan Date: Mon, 23 Dec 2024 14:18:48 +0400 Subject: [PATCH] fix: remove spark stuff from Firo testnet --- .../extension/src/libs/spark-handler/index.ts | 4 ++-- .../bitcoin/ui/send-transaction/index.vue | 6 +----- .../tabs/transparent-send-tab.vue | 11 +++++++++++ packages/extension/src/ui/action/App.vue | 10 ++-------- .../index.vue | 17 ++++++++++++++++- 5 files changed, 32 insertions(+), 16 deletions(-) diff --git a/packages/extension/src/libs/spark-handler/index.ts b/packages/extension/src/libs/spark-handler/index.ts index aba753e4..686b20a4 100644 --- a/packages/extension/src/libs/spark-handler/index.ts +++ b/packages/extension/src/libs/spark-handler/index.ts @@ -31,8 +31,8 @@ export async function sendFromSparkAddress( to: string, amount: string, subtractFee = false -) { - return await callRPC("spendspark", [ +): Promise { + return await callRPC("spendspark", [ { [to]: { amount: Number(amount), diff --git a/packages/extension/src/providers/bitcoin/ui/send-transaction/index.vue b/packages/extension/src/providers/bitcoin/ui/send-transaction/index.vue index 873d5f0b..e754681b 100644 --- a/packages/extension/src/providers/bitcoin/ui/send-transaction/index.vue +++ b/packages/extension/src/providers/bitcoin/ui/send-transaction/index.vue @@ -9,11 +9,7 @@ />