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.successMessage = ''
|
||||
let nonce = window.parent.computePow(hashPtr, workBufferPtr, workBufferLength, difficulty)
|
||||
let response = false
|
||||
|
||||
if (fee) {
|
||||
@ -657,6 +656,8 @@ class PublishData extends LitElement {
|
||||
arbitraryBytesForSigningBase58: convertedBytesBase58
|
||||
})
|
||||
} else {
|
||||
const nonce = window.parent.computePow(hashPtr, workBufferPtr, workBufferLength, difficulty)
|
||||
|
||||
response = await parentEpml.request('sign_arbitrary', {
|
||||
nonce: this.selectedAddress.nonce,
|
||||
arbitraryBytesBase58: transactionBytesBase58,
|
||||
|
Loading…
x
Reference in New Issue
Block a user