Don't attempt to filter proxies (#8994)

This commit is contained in:
Jaco 2023-02-09 19:59:05 +02:00 committed by GitHub
parent 36d4e546eb
commit 749cf8ade9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()) {