From 8b158263fac47b83c4304f976bd3a57b1c3e118a Mon Sep 17 00:00:00 2001 From: Sameer Kumar Subudhi Date: Wed, 10 Apr 2024 16:52:35 +0200 Subject: [PATCH] :bug: Update token info on blockchain state change --- services/blockchain-connector/shared/sdk/events.js | 1 + 1 file changed, 1 insertion(+) diff --git a/services/blockchain-connector/shared/sdk/events.js b/services/blockchain-connector/shared/sdk/events.js index 6e8b025b6a..9afacf7880 100644 --- a/services/blockchain-connector/shared/sdk/events.js +++ b/services/blockchain-connector/shared/sdk/events.js @@ -71,6 +71,7 @@ const emitEngineEvents = async () => { lastBlockHeightEvent = height; const newBlock = await getBlockByHeight(height); Signals.get(EVENT_CHAIN_BLOCK_NEW).dispatch({ blockHeader: newBlock.header }); + await updateTokenInfo().catch(err => logError('updateTokenInfo', err)); if ((height - genesisHeight) % roundLength === 1) { const bftParameters = await getBFTParameters(height);