From 809278ab4dca0bdb08aa8e36a6db7d43beb2ef65 Mon Sep 17 00:00:00 2001 From: Jhonatan Gonzalez Date: Fri, 1 Mar 2024 13:19:27 +1100 Subject: [PATCH] add logs to track address --- .../widgets-lib/src/widgets/sale/hooks/useSmartCheckout.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/checkout/widgets-lib/src/widgets/sale/hooks/useSmartCheckout.ts b/packages/checkout/widgets-lib/src/widgets/sale/hooks/useSmartCheckout.ts index 752365c02b..65c62b3735 100644 --- a/packages/checkout/widgets-lib/src/widgets/sale/hooks/useSmartCheckout.ts +++ b/packages/checkout/widgets-lib/src/widgets/sale/hooks/useSmartCheckout.ts @@ -34,7 +34,7 @@ export const useSmartCheckout = ({ try { const signer = provider?.getSigner(); const spenderAddress = await signer?.getAddress() || ''; - console.log('🚀 ~ spenderAddress:', spenderAddress); // eslint-disable-line + console.log('🚀 ~ fractional check: spenderAddress:', spenderAddress); // eslint-disable-line const userFractionalBalanceBlocked = await isUserFractionalBalanceBlocked( spenderAddress, @@ -50,6 +50,7 @@ export const useSmartCheckout = ({ const itemRequirements = getItemRequirements(amount, spenderAddress, tokenAddress); const gasEstimate = getGasEstimate(); + console.log('🚀 ~ smartCheckout/itemRequirements:', itemRequirements, gasEstimate, !!provider); // eslint-disable-line const res = await checkout?.smartCheckout( { provider: provider!,