Browse Source

Merge pull request #189 from Philreact/add-fee-to-publish

Add fee to publish
resolve-20231003
AlphaX-Projects 1 year ago committed by GitHub
parent
commit
d1facdd91a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      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

7
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') {
@ -1143,7 +1144,7 @@ class WebBrowser extends LitElement {
{
resources,
encrypt: data.encrypt,
feeAmount
feeAmount: getArbitraryFee.feeToShow
}
);

3
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)
}
}

3
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)
}
}

Loading…
Cancel
Save