From d31a957fb42ce71c5cc26473a5b6712e72a7925e Mon Sep 17 00:00:00 2001 From: Tornado Contrib Date: Wed, 8 May 2024 18:58:50 +0000 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=B5=20=D0=92=D0=B0=D0=BB=D1=8F=D0=B9?= =?UTF-8?q?=20=D0=94=D1=83=D1=80=D0=B0=D0=BA=D0=B0,=20=D0=90=D0=BC=D0=B5?= =?UTF-8?q?=D1=80=D0=B8=D0=BA=D0=B0!?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- containers/Provider/Provider.vue | 6 ------ store/wallet.ts | 11 ----------- 2 files changed, 17 deletions(-) diff --git a/containers/Provider/Provider.vue b/containers/Provider/Provider.vue index 7dae6d5..42f1fc0 100644 --- a/containers/Provider/Provider.vue +++ b/containers/Provider/Provider.vue @@ -55,7 +55,6 @@ export default { 'setProvider', 'changeChain', 'checkNetwork', - 'checkSanction', 'setWalletParams', 'getWalletBalance', ]), @@ -93,9 +92,6 @@ export default { const address = await provider.setupProvider() const network = await provider.checkNetworkVersion() - if (address) { - await this.checkSanction(address) - } await this.setProvider({ network, name: key }) await this.setAccountData(address) @@ -126,8 +122,6 @@ export default { if (address) { const checksumAddress = toChecksumAddress(address) - await this.checkSanction(checksumAddress) - if (!this.isConnected) { return } diff --git a/store/wallet.ts b/store/wallet.ts index 08762e0..7102646 100644 --- a/store/wallet.ts +++ b/store/wallet.ts @@ -19,17 +19,6 @@ export const actions: ActionTree = { } }, - async checkSanction({ getters }, address) { - const contract = getSanctionList(getters.dependencies.l1ChainId) - - const isSanctioned = await contract.callStatic.isSanctioned(address) - if (isSanctioned) { - window.onbeforeunload = null - // ToDo add type - // @ts-expect-error - window.location = 'https://twitter.com/TornadoCash/status/1514904975037669386' - } - }, checkAppNetwork({ commit }, network) { try { // TODO create a selector for active network