From d648435bc4a3a09ecb5aed1d10f7940589754c38 Mon Sep 17 00:00:00 2001 From: Phillip Date: Wed, 16 Aug 2023 14:00:12 -0500 Subject: [PATCH] fix fee --- plugins/plugins/core/qdn/browser/browser.src.js | 5 +++-- plugins/plugins/core/qdn/publish/publish.src.js | 3 ++- plugins/plugins/utils/publish-image.js | 3 ++- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/plugins/plugins/core/qdn/browser/browser.src.js b/plugins/plugins/core/qdn/browser/browser.src.js index 20b66767..c43b989d 100644 --- a/plugins/plugins/core/qdn/browser/browser.src.js +++ b/plugins/plugins/core/qdn/browser/browser.src.js @@ -438,7 +438,8 @@ class WebBrowser extends LitElement { const arbitraryFee = (Number(data) / 1e8).toFixed(8) return { timestamp, - fee : arbitraryFee + fee : Number(data), + feeToShow: arbitraryFee } } async sendQortFee() { @@ -1043,7 +1044,7 @@ class WebBrowser extends LitElement { identifier, service, encrypt: data.encrypt, - feeAmount + feeAmount: getArbitraryFee.feeToShow } ); if (res2.action === 'accept') { diff --git a/plugins/plugins/core/qdn/publish/publish.src.js b/plugins/plugins/core/qdn/publish/publish.src.js index aaf16793..77b99317 100644 --- a/plugins/plugins/core/qdn/publish/publish.src.js +++ b/plugins/plugins/core/qdn/publish/publish.src.js @@ -495,7 +495,8 @@ class PublishData extends LitElement { }) return { timestamp, - fee : (Number(fee) / 1e8).toFixed(8) + fee : Number(fee), + feeToShow: (Number(fee) / 1e8).toFixed(8) } } diff --git a/plugins/plugins/utils/publish-image.js b/plugins/plugins/utils/publish-image.js index fde18985..ed3b2c34 100644 --- a/plugins/plugins/utils/publish-image.js +++ b/plugins/plugins/utils/publish-image.js @@ -56,7 +56,8 @@ export const publishData = async ({ }) return { timestamp, - fee : (Number(fee) / 1e8).toFixed(8) + fee : Number(fee), + feeToShow: (Number(fee) / 1e8).toFixed(8) } }