From a95e4cd6e957538829823b018dff54fbfc812aea Mon Sep 17 00:00:00 2001 From: Riccardo Balbo Date: Mon, 14 Oct 2024 19:45:45 +0200 Subject: [PATCH] collect meta from server config --- wallets/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wallets/index.js b/wallets/index.js index 4ced5302..72515d39 100644 --- a/wallets/index.js +++ b/wallets/index.js @@ -260,7 +260,6 @@ function useConfig (walletDef) { const saveConfig = useCallback(async (newConfig, { logger, skipTests }) => { const priorityOnly = skipTests - const { autoWithdrawThreshold, autoWithdrawMaxFeePercent, priority, enabled } = newConfig try { // gather configs @@ -287,10 +286,11 @@ function useConfig (walletDef) { // check if it misses send or receive configs const isReadyToSend = canSend && isConfigured({ fields: walletDef.fields, config: newConfig, clientOnly: true }) const isReadyToReceive = canReceive && isConfigured({ fields: walletDef.fields, config: newConfig, serverOnly: true }) + const { autoWithdrawThreshold, autoWithdrawMaxFeePercent, priority, enabled } = newServerConfig // console.log('New client config', newClientConfig) // console.log('New server config', newServerConfig) - // console.log('Sender', isReadyToSend, 'Receiver', isReadyToReceive, 'enabled', enabled) + // console.log('Sender', isReadyToSend, 'Receiver', isReadyToReceive, 'enabled', enabled, autoWithdrawThreshold, autoWithdrawMaxFeePercent, priority) // client test if (!skipTests && isReadyToSend) {