From a274720e5b3c035d398035d2fdf758640047a0a5 Mon Sep 17 00:00:00 2001 From: avelous Date: Sun, 25 Feb 2024 19:48:17 +0100 Subject: [PATCH] added two more iterations for sweeping with 2x the gas limit each time, re route users to home page instead of client error and brought generate button forward --- packages/nextjs/components/Wallet.tsx | 35 +++---- .../nextjs/components/dicedemo/Congrats.tsx | 6 +- packages/nextjs/hooks/useSweepWallet.tsx | 91 ++++++++++++++++--- packages/nextjs/pages/game/[id].tsx | 14 +-- 4 files changed, 110 insertions(+), 36 deletions(-) diff --git a/packages/nextjs/components/Wallet.tsx b/packages/nextjs/components/Wallet.tsx index 4dcba08..2f3153c 100644 --- a/packages/nextjs/components/Wallet.tsx +++ b/packages/nextjs/components/Wallet.tsx @@ -212,20 +212,6 @@ export default function Wallet() {

Known Private Keys:

{extraPkDisplay} -
) : ( "" @@ -278,16 +264,33 @@ export default function Wallet() { {display} -
+
+