fix(walletconnect)_: tx fees not sent (#15678)
This commit is contained in:
parent
e43ebc26a3
commit
05287c873a
|
@ -320,7 +320,6 @@ SQUtils.QObject {
|
||||||
actionResult = store.signTransaction(request.topic, request.id,
|
actionResult = store.signTransaction(request.topic, request.id,
|
||||||
request.account.address, request.network.chainId, password, txObj)
|
request.account.address, request.network.chainId, password, txObj)
|
||||||
} else if (request.method === SessionRequest.methods.sendTransaction.name) {
|
} else if (request.method === SessionRequest.methods.sendTransaction.name) {
|
||||||
let txObj = SessionRequest.methods.sendTransaction.getTxObjFromData(request.data)
|
|
||||||
actionResult = store.sendTransaction(request.topic, request.id,
|
actionResult = store.sendTransaction(request.topic, request.id,
|
||||||
request.account.address, request.network.chainId, password, txObj)
|
request.account.address, request.network.chainId, password, txObj)
|
||||||
}
|
}
|
||||||
|
|
|
@ -57,8 +57,11 @@ QObject {
|
||||||
if (txObj.data) { tx.data = txObj.data }
|
if (txObj.data) { tx.data = txObj.data }
|
||||||
if (txObj.from) { tx.from = txObj.from }
|
if (txObj.from) { tx.from = txObj.from }
|
||||||
if (txObj.gasLimit) { tx.gasLimit = stripLeadingZeros(txObj.gasLimit) }
|
if (txObj.gasLimit) { tx.gasLimit = stripLeadingZeros(txObj.gasLimit) }
|
||||||
|
if (txObj.gas) { tx.gas = stripLeadingZeros(txObj.gas) }
|
||||||
if (txObj.gasPrice) { tx.gasPrice = stripLeadingZeros(txObj.gasPrice) }
|
if (txObj.gasPrice) { tx.gasPrice = stripLeadingZeros(txObj.gasPrice) }
|
||||||
if (txObj.nonce) { tx.nonce = stripLeadingZeros(txObj.nonce) }
|
if (txObj.nonce) { tx.nonce = stripLeadingZeros(txObj.nonce) }
|
||||||
|
if (txObj.maxFeePerGas) { tx.maxFeePerGas = stripLeadingZeros(txObj.maxFeePerGas) }
|
||||||
|
if (txObj.maxPriorityFeePerGas) { tx.maxPriorityFeePerGas = stripLeadingZeros(txObj.maxPriorityFeePerGas) }
|
||||||
if (txObj.to) { tx.to = txObj.to }
|
if (txObj.to) { tx.to = txObj.to }
|
||||||
if (txObj.value) { tx.value = stripLeadingZeros(txObj.value) }
|
if (txObj.value) { tx.value = stripLeadingZeros(txObj.value) }
|
||||||
return tx
|
return tx
|
||||||
|
|
Loading…
Reference in New Issue