Fix proxy build
This commit is contained in:
@@ -1290,9 +1290,9 @@ export default fp(async (fastify) => {
|
||||
try {
|
||||
const sdk = await getClientForAddress("0x0000000000000000000000000000000000000000");
|
||||
fastify.log.info('GMX client initialized successfully');
|
||||
fastify.log.info('GMX UI Fee Receiver:', sdk.config.settings.uiFeeReceiverAccount);
|
||||
fastify.log.info(`GMX UI Fee Receiver: ${sdk.config.settings.uiFeeReceiverAccount}`);
|
||||
} catch (error) {
|
||||
fastify.log.warn('GMX client initialization failed, but continuing:', error);
|
||||
fastify.log.warn(`GMX client initialization failed, but continuing: ${error}`);
|
||||
// The client will be initialized when actually needed
|
||||
}
|
||||
});
|
||||
|
||||
@@ -1232,9 +1232,9 @@ export default fp(async (fastify) => {
|
||||
// Test the Privy client initialization
|
||||
try {
|
||||
const testClient = getPrivyClient(fastify);
|
||||
fastify.log.info('Privy client initialized successfully', (await testClient.getAppSettings()).id);
|
||||
fastify.log.info(`Privy client initialized successfully: ${(await testClient.getAppSettings()).id}`);
|
||||
} catch (error) {
|
||||
fastify.log.error('Failed to initialize Privy client:', error);
|
||||
fastify.log.error(`Failed to initialize Privy client: ${error}`);
|
||||
throw error;
|
||||
}
|
||||
}, {
|
||||
|
||||
Reference in New Issue
Block a user