Adjust teleport weights for XCM (#5416)
This commit is contained in:
parent
5984fbc28e
commit
0942a03a3a
@ -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;
|
||||
}
|
||||
|
||||
@ -87,7 +87,5 @@ export function useTeleport (): Teleport {
|
||||
}
|
||||
}, [apiUrl, chainParaId]);
|
||||
|
||||
console.log('useTeleport', JSON.stringify(state));
|
||||
|
||||
return state;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user