Update Unitfee

This commit is contained in:
AlphaX-Projects 2022-02-20 19:09:00 +01:00 committed by GitHub
parent 8219898e1e
commit 2d9e1df7aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -119,6 +119,9 @@ class NameRegistration extends LitElement {
</span>
<span ?hidden=${this.message === ''} style="${this.error ? 'color:red;' : ''}">
${this.message}
</span><br>
<span>
<b>The current name registration fee is ${this.fee} QORT.</b>
</span>
</div>
@ -222,7 +225,7 @@ class NameRegistration extends LitElement {
return Promise.reject(response);
})
.then((json) => {
this.fee = (Number(json) / 1e8).toFixed(8);
this.fee = (Number(json) / 1e8).toFixed(2);
})
.catch((response) => {
console.log(response.status, response.statusText, 'Need Core Update');