diff --git a/novawallet/Modules/DApp/DAppBrowser/DAppBrowserWidget/DAppBrowserWidgetPresenter.swift b/novawallet/Modules/DApp/DAppBrowser/DAppBrowserWidget/DAppBrowserWidgetPresenter.swift index ad452f0c9..c0a3ee4eb 100644 --- a/novawallet/Modules/DApp/DAppBrowser/DAppBrowserWidget/DAppBrowserWidgetPresenter.swift +++ b/novawallet/Modules/DApp/DAppBrowser/DAppBrowserWidget/DAppBrowserWidgetPresenter.swift @@ -165,7 +165,7 @@ extension DAppBrowserWidgetPresenter: DAppBrowserWidgetInteractorOutputProtocol } func didReceiveWalletChanged() { - view?.didReceiveRequestForCachedWebViewClear() + view?.didChangeWallet() } } diff --git a/novawallet/Modules/DApp/DAppBrowser/DAppBrowserWidget/DAppBrowserWidgetProtocols.swift b/novawallet/Modules/DApp/DAppBrowser/DAppBrowserWidget/DAppBrowserWidgetProtocols.swift index 7fd867a87..43a2dce8e 100644 --- a/novawallet/Modules/DApp/DAppBrowser/DAppBrowserWidget/DAppBrowserWidgetProtocols.swift +++ b/novawallet/Modules/DApp/DAppBrowser/DAppBrowserWidget/DAppBrowserWidgetProtocols.swift @@ -19,7 +19,7 @@ protocol DAppBrowserWidgetProtocol { protocol DAppBrowserWidgetViewProtocol: ControllerBackedProtocol { func didReceive(_ browserWidgetModel: DAppBrowserWidgetModel) func didReceiveRequestForMinimizing() - func didReceiveRequestForCachedWebViewClear() + func didChangeWallet() } // MARK: VIEW -> PRESENTER diff --git a/novawallet/Modules/DApp/DAppBrowser/DAppBrowserWidget/DAppBrowserWidgetViewController.swift b/novawallet/Modules/DApp/DAppBrowser/DAppBrowserWidget/DAppBrowserWidgetViewController.swift index 6acc19b52..689d867e4 100644 --- a/novawallet/Modules/DApp/DAppBrowser/DAppBrowserWidget/DAppBrowserWidgetViewController.swift +++ b/novawallet/Modules/DApp/DAppBrowser/DAppBrowserWidget/DAppBrowserWidgetViewController.swift @@ -87,7 +87,7 @@ private extension DAppBrowserWidgetViewController { // MARK: DAppBrowserWidgetViewProtocol extension DAppBrowserWidgetViewController: DAppBrowserWidgetViewProtocol { - func didReceiveRequestForCachedWebViewClear() { + func didChangeWallet() { webViewPoolEraser.removeAll() }