From bef213bb369c73fb88a38f28cd79bbc81f47fea3 Mon Sep 17 00:00:00 2001 From: Onno Visser <23527729+onnovisser@users.noreply.github.com> Date: Wed, 6 Sep 2023 13:22:22 +0200 Subject: [PATCH] fix events --- centrifuge-js/src/modules/pools.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/centrifuge-js/src/modules/pools.ts b/centrifuge-js/src/modules/pools.ts index dde7b0f18e..661086e9a7 100644 --- a/centrifuge-js/src/modules/pools.ts +++ b/centrifuge-js/src/modules/pools.ts @@ -1153,8 +1153,8 @@ export function getPoolsModule(inst: Centrifuge) { ) if (!event) return false - const [accountId] = (event.toJSON() as any).event.data - return addressSet.has(accountId) + const [accountId] = (event.toHuman() as any).event.data + return addressSet.has(addressToHex(accountId)) }) )