fix(WalletConnect): Fixing fees parsing when provided by the dApp
(cherry picked from commit f73356e2e8
)
This commit is contained in:
parent
96824dbb91
commit
effd676a16
|
@ -432,10 +432,11 @@ SQUtils.QObject {
|
||||||
// Beware, the tx values are standard blockchain hex big number values; the fees values are nim's float64 values, hence the complex conversions
|
// Beware, the tx values are standard blockchain hex big number values; the fees values are nim's float64 values, hence the complex conversions
|
||||||
if (!!tx.maxFeePerGas && !!tx.maxPriorityFeePerGas) {
|
if (!!tx.maxFeePerGas && !!tx.maxPriorityFeePerGas) {
|
||||||
let maxFeePerGasDec = root.store.hexToDec(tx.maxFeePerGas)
|
let maxFeePerGasDec = root.store.hexToDec(tx.maxFeePerGas)
|
||||||
gasPrice = BigOps.fromString(maxFeePerGasDec)
|
const gasPriceInWei = BigOps.fromString(maxFeePerGasDec)
|
||||||
|
gasPrice = hexToGwei(tx.maxFeePerGas)
|
||||||
// Source fees info from the incoming transaction for when we process it
|
// Source fees info from the incoming transaction for when we process it
|
||||||
maxFeePerGas = maxFeePerGasDec
|
maxFeePerGas = root.store.hexToDec(tx.maxFeePerGas)
|
||||||
let maxPriorityFeePerGasDec = root.store.hexToDec(tx.maxPriorityFeePerGas)
|
let maxPriorityFeePerGasDec = hexToGwei(tx.maxPriorityFeePerGas)
|
||||||
maxPriorityFeePerGas = maxPriorityFeePerGasDec
|
maxPriorityFeePerGas = maxPriorityFeePerGasDec
|
||||||
} else {
|
} else {
|
||||||
let fees = root.store.getSuggestedFees(chainId)
|
let fees = root.store.getSuggestedFees(chainId)
|
||||||
|
|
Loading…
Reference in New Issue