collect meta from server config

This commit is contained in:
Riccardo Balbo 2024-10-14 19:45:45 +02:00 committed by k00b
parent 4604a7bac9
commit a95e4cd6e9
1 changed files with 2 additions and 2 deletions

View File

@ -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) {