From 1bd7ca863c30d330aa25b39a04bf647e650b6378 Mon Sep 17 00:00:00 2001 From: zugdev Date: Thu, 26 Dec 2024 04:40:06 -0300 Subject: [PATCH] feat: render success in revoke --- static/handle-approval.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/static/handle-approval.ts b/static/handle-approval.ts index c590197..c8a9bf0 100644 --- a/static/handle-approval.ts +++ b/static/handle-approval.ts @@ -137,6 +137,8 @@ async function onRevokeClick() { const tx = await tokenContract.approve(permit2Address, 0); await tx.wait(); + renderSuccessModal(tx.hash); + await getCurrentAllowance(); } catch (error) { console.error("Error revoking allowance:", error);