Adjust teleport weights for XCM (#5416)

This commit is contained in:
Jaco 2021-06-02 16:54:29 +03:00 committed by GitHub
parent 5984fbc28e
commit 0942a03a3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 5 deletions

View File

@ -16,7 +16,7 @@ interface Props {
}
const INVALID_PARAID = Number.MAX_SAFE_INTEGER;
const DEFAULT_WEIGHT = 1_000_000_000;
const DEFAULT_WEIGHT = 100_000_000; // 30_000_000 as per the code, add a margin
function Teleport ({ onClose }: Props): React.ReactElement<Props> | null {
const { t } = useTranslation();
@ -52,8 +52,6 @@ function Teleport ({ onClose }: Props): React.ReactElement<Props> | null {
[amount, isParachain, recipientId, recipientParaId, weight]
);
console.log('Teleport', allowTeleport, chainOpts);
if (!allowTeleport || !chainOpts.length) {
return null;
}

View File

@ -87,7 +87,5 @@ export function useTeleport (): Teleport {
}
}, [apiUrl, chainParaId]);
console.log('useTeleport', JSON.stringify(state));
return state;
}