fix(walletconnect)_: tx fees not sent (#15678)

This commit is contained in:
Lungu Cristian 2024-07-19 16:33:22 +03:00 committed by GitHub
parent e43ebc26a3
commit 05287c873a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -320,7 +320,6 @@ SQUtils.QObject {
actionResult = store.signTransaction(request.topic, request.id,
request.account.address, request.network.chainId, password, txObj)
} else if (request.method === SessionRequest.methods.sendTransaction.name) {
let txObj = SessionRequest.methods.sendTransaction.getTxObjFromData(request.data)
actionResult = store.sendTransaction(request.topic, request.id,
request.account.address, request.network.chainId, password, txObj)
}

View File

@ -57,8 +57,11 @@ QObject {
if (txObj.data) { tx.data = txObj.data }
if (txObj.from) { tx.from = txObj.from }
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.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.value) { tx.value = stripLeadingZeros(txObj.value) }
return tx