From b4823c5bfb34508eb3553beaf728f051dca1dd37 Mon Sep 17 00:00:00 2001 From: yann300 Date: Thu, 6 Jan 2022 11:33:44 +0100 Subject: [PATCH] add hideFn --- apps/remix-ide/src/app/tabs/hardhat-provider.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/remix-ide/src/app/tabs/hardhat-provider.js b/apps/remix-ide/src/app/tabs/hardhat-provider.js index 2d3f8e243b..07d3f86ebd 100644 --- a/apps/remix-ide/src/app/tabs/hardhat-provider.js +++ b/apps/remix-ide/src/app/tabs/hardhat-provider.js @@ -56,13 +56,16 @@ export default class HardhatProvider extends Plugin { cancelFn: (value) => { setTimeout(() => reject(new Error('Canceled')), 0) }, + hideFn: (value) => { + setTimeout(() => reject(new Error('Hide')), 0) + }, defaultValue: 'http://127.0.0.1:8545' } this.call('modal', 'modal', modalContent) }) })() } catch (e) { - // the modal has been canceled + // the modal has been canceled/hide return } this.provider = new Web3.providers.HttpProvider(target)