From 93eb300611af9efe699d4684c44ecabbbd46327a Mon Sep 17 00:00:00 2001 From: imsk17 Date: Thu, 29 Aug 2024 11:56:41 +0530 Subject: [PATCH] fix(mx): decode transactions --- src/handler/multiversx/utils/listenForLockEvents.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/handler/multiversx/utils/listenForLockEvents.ts b/src/handler/multiversx/utils/listenForLockEvents.ts index b48b4627..ce8bbbd8 100644 --- a/src/handler/multiversx/utils/listenForLockEvents.ts +++ b/src/handler/multiversx/utils/listenForLockEvents.ts @@ -64,10 +64,11 @@ export default async function listenForLockEvents( const transactionOnNetworkMultisig = await provider.getTransaction( tx.hash, ); + const eventTx = await provider.getTransaction( + transactionOnNetworkMultisig.contractResults.items[0].hash, + ); const transactionOutcomeLock = - converter.transactionOnNetworkToOutcome( - transactionOnNetworkMultisig, - ); + converter.transactionOnNetworkToOutcome(eventTx); const [event] = findEventsByFirstTopic( transactionOutcomeLock, "Locked",