forked from Qortal/qortal-ui
Fixed issue where computePow() was being called even when using a fee.
This commit is contained in:
parent
0f8cd2c03f
commit
270bc1c9f9
@ -647,7 +647,6 @@ class PublishData extends LitElement {
|
|||||||
|
|
||||||
this.errorMessage = ''
|
this.errorMessage = ''
|
||||||
this.successMessage = ''
|
this.successMessage = ''
|
||||||
let nonce = window.parent.computePow(hashPtr, workBufferPtr, workBufferLength, difficulty)
|
|
||||||
let response = false
|
let response = false
|
||||||
|
|
||||||
if (fee) {
|
if (fee) {
|
||||||
@ -657,6 +656,8 @@ class PublishData extends LitElement {
|
|||||||
arbitraryBytesForSigningBase58: convertedBytesBase58
|
arbitraryBytesForSigningBase58: convertedBytesBase58
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
const nonce = window.parent.computePow(hashPtr, workBufferPtr, workBufferLength, difficulty)
|
||||||
|
|
||||||
response = await parentEpml.request('sign_arbitrary', {
|
response = await parentEpml.request('sign_arbitrary', {
|
||||||
nonce: this.selectedAddress.nonce,
|
nonce: this.selectedAddress.nonce,
|
||||||
arbitraryBytesBase58: transactionBytesBase58,
|
arbitraryBytesBase58: transactionBytesBase58,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user