From 1b4ee85fe28dcddf8bab32983bdb85126195ba08 Mon Sep 17 00:00:00 2001 From: Yohan Tancrez Date: Fri, 26 Apr 2024 02:06:12 +0200 Subject: [PATCH] fix: raise the additional gas for the message if multiple tokens --- .../src/app/(routes)/bridge/_hooks/useEthereumNftDeposit.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/web/src/app/(routes)/bridge/_hooks/useEthereumNftDeposit.tsx b/apps/web/src/app/(routes)/bridge/_hooks/useEthereumNftDeposit.tsx index aca28574..296a9e71 100644 --- a/apps/web/src/app/(routes)/bridge/_hooks/useEthereumNftDeposit.tsx +++ b/apps/web/src/app/(routes)/bridge/_hooks/useEthereumNftDeposit.tsx @@ -69,8 +69,7 @@ export default function useEthereumNftDeposit() { false, ], functionName: "depositTokens", - // TODO @YohanTz: Get needed gas from ? - value: parseGwei("40000"), + value: parseGwei((40000 * selectedTokenIds.length).toString()), }); }