Browse Source

fix fee

resolve-20231003
Phillip 1 year ago
parent
commit
d648435bc4
  1. 5
      plugins/plugins/core/qdn/browser/browser.src.js
  2. 3
      plugins/plugins/core/qdn/publish/publish.src.js
  3. 3
      plugins/plugins/utils/publish-image.js

5
plugins/plugins/core/qdn/browser/browser.src.js

@ -438,7 +438,8 @@ class WebBrowser extends LitElement {
const arbitraryFee = (Number(data) / 1e8).toFixed(8) const arbitraryFee = (Number(data) / 1e8).toFixed(8)
return { return {
timestamp, timestamp,
fee : arbitraryFee fee : Number(data),
feeToShow: arbitraryFee
} }
} }
async sendQortFee() { async sendQortFee() {
@ -1043,7 +1044,7 @@ class WebBrowser extends LitElement {
identifier, identifier,
service, service,
encrypt: data.encrypt, encrypt: data.encrypt,
feeAmount feeAmount: getArbitraryFee.feeToShow
} }
); );
if (res2.action === 'accept') { if (res2.action === 'accept') {

3
plugins/plugins/core/qdn/publish/publish.src.js

@ -495,7 +495,8 @@ class PublishData extends LitElement {
}) })
return { return {
timestamp, timestamp,
fee : (Number(fee) / 1e8).toFixed(8) fee : Number(fee),
feeToShow: (Number(fee) / 1e8).toFixed(8)
} }
} }

3
plugins/plugins/utils/publish-image.js

@ -56,7 +56,8 @@ export const publishData = async ({
}) })
return { return {
timestamp, timestamp,
fee : (Number(fee) / 1e8).toFixed(8) fee : Number(fee),
feeToShow: (Number(fee) / 1e8).toFixed(8)
} }
} }

Loading…
Cancel
Save