fix: calculate estimated time in ens modal

fix: calculate estimated time in ens modal
This commit is contained in:
Anastasiya S 2022-08-19 17:51:24 +03:00 committed by Richard Ramos
parent 289209f7ec
commit 9283e68421
3 changed files with 8 additions and 2 deletions

View File

@ -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 ""

View File

@ -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

2
vendor/status-go vendored

@ -1 +1 @@
Subproject commit ef21440e320d21ed0ad26cb3506d3d93ce5671be
Subproject commit 956cc1870ea72871b8e929f63f812799456c1460