fix: calculate estimated time in ens modal
fix: calculate estimated time in ens modal
This commit is contained in:
parent
289209f7ec
commit
9283e68421
|
@ -140,6 +140,10 @@ QtObject {
|
|||
return ensUsernamesModule.getGasEthValue(gweiValue, gasLimit)
|
||||
}
|
||||
|
||||
function getEstimatedTime(chainId, maxFeePerGas) {
|
||||
return walletSectionTransactions.getEstimatedTime(chainId, maxFeePerGas)
|
||||
}
|
||||
|
||||
function getStatusToken() {
|
||||
if(!root.ensUsernamesModule)
|
||||
return ""
|
||||
|
|
|
@ -112,6 +112,7 @@ ModalPopup {
|
|||
visible: false
|
||||
accounts: root.ensUsernamesStore.walletAccounts
|
||||
contactsStore: root.contactsStore
|
||||
isValid: true
|
||||
selectedRecipient: { "address": root.ensUsernamesStore.getEnsRegisteredAddress(), "type": RecipientSelector.Type.Address }
|
||||
readOnly: true
|
||||
onSelectedRecipientChanged: if (isValid) { gasSelector.estimateGas() }
|
||||
|
@ -122,9 +123,10 @@ ModalPopup {
|
|||
anchors.top: selectFromAccount.bottom
|
||||
anchors.topMargin: Style.current.padding
|
||||
getGasEthValue: root.ensUsernamesStore.getGasEthValue
|
||||
getEstimatedTime: root.ensUsernamesStore.getEstimatedTime
|
||||
getFiatValue: root.ensUsernamesStore.getFiatValue
|
||||
defaultCurrency: root.ensUsernamesStore.getCurrentCurrency()
|
||||
|
||||
|
||||
property var estimateGas: Backpressure.debounce(gasSelector, 600, function() {
|
||||
let estimatedGas = root.estimateGasFunction(selectFromAccount.selectedAccount);
|
||||
gasSelector.selectedGasLimit = estimatedGas
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit ef21440e320d21ed0ad26cb3506d3d93ce5671be
|
||||
Subproject commit 956cc1870ea72871b8e929f63f812799456c1460
|
Loading…
Reference in New Issue