From fc4e393546088640a16b144b17eb97d886fc7200 Mon Sep 17 00:00:00 2001 From: mmaurello <93129175+mmaurello@users.noreply.github.com> Date: Fri, 18 Oct 2024 14:07:22 +0200 Subject: [PATCH] fix gas estimation for moonbase alpha automatic (#374) --- packages/mrl/src/getTransferData/getTransferData.utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/mrl/src/getTransferData/getTransferData.utils.ts b/packages/mrl/src/getTransferData/getTransferData.utils.ts index 184c9f1e..a1716291 100644 --- a/packages/mrl/src/getTransferData/getTransferData.utils.ts +++ b/packages/mrl/src/getTransferData/getTransferData.utils.ts @@ -39,7 +39,7 @@ import type { const MOON_CHAIN_AUTOMATIC_GAS_ESTIMATION = { [moonbeam.key]: 1273110n, - [moonbaseAlpha.key]: 1271922n, + [moonbaseAlpha.key]: 1470417n, }; export interface DataParams { @@ -222,7 +222,7 @@ export async function getMoonGasLimit( // it requires the computedOriginAccount to have the balance for the call // which we don't have when we make the call. We hardcode it for now if (isAutomatic) { - return MOON_CHAIN_AUTOMATIC_GAS_ESTIMATION[moonChain.key]; + return (MOON_CHAIN_AUTOMATIC_GAS_ESTIMATION[moonChain.key] * 110n) / 100n; } const contract = MrlBuilder()