From 749cf8ade90bd27e2e9b5c7fda39804500a0f90c Mon Sep 17 00:00:00 2001 From: Jaco Date: Thu, 9 Feb 2023 19:59:05 +0200 Subject: [PATCH] Don't attempt to filter proxies (#8994) --- packages/react-signer/src/Address.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/react-signer/src/Address.tsx b/packages/react-signer/src/Address.tsx index d9d6cfec51..7f1c11521f 100644 --- a/packages/react-signer/src/Address.tsx +++ b/packages/react-signer/src/Address.tsx @@ -49,6 +49,10 @@ interface ProxyState { proxiesFilter: string[]; } +// true if we don't try to filter the list of proxies by type and +// instead leave it up to the user +const BYPASS_PROXY_CHECK = true; + function findCall (tx: Call | SubmittableExtrinsic<'promise'>): { method: string; section: string } { try { const { method, section } = tx.registry.findMetaCall(tx.callIndex); @@ -86,6 +90,8 @@ function filterProxies (allAccounts: string[], tx: Call | SubmittableExtrinsic<' // FIXME Change when we add support for delayed proxies if (!allAccounts.includes(address) || !delay.isZero()) { return false; + } else if (BYPASS_PROXY_CHECK) { + return true; } switch (proxy.toString()) {