From 0acef5e3ef041e84645f337d8af5776a9819727a Mon Sep 17 00:00:00 2001 From: Mario J Maurello Date: Fri, 18 Oct 2024 13:51:50 +0200 Subject: [PATCH] fix gas estimation for moonbase alpha automatic --- 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()