Skip to content

Commit 10c59f3

Browse files
committed
fix event filter
1 parent 4eedb91 commit 10c59f3

File tree

1 file changed

+2
-2
lines changed
  • integration-tests/chopsticks/src/helper

1 file changed

+2
-2
lines changed

integration-tests/chopsticks/src/helper/utils.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import { decodeAddress } from '@polkadot/util-crypto'
55

66
import type { SubmittableExtrinsic } from '@polkadot/api/types'
77
import type { KeyringPair } from '@polkadot/keyring/types'
8-
import type { GenericEvent } from '@polkadot/types'
98
import type { Codec } from '@polkadot/types/types'
109
import type { ExpectStatic } from 'vitest'
1110

@@ -82,7 +81,8 @@ export function validateBalanceWithPrecision(
8281
* Fetches the paid fees for the executed XCM message. Is only working on the sender chain.
8382
*/
8483
export async function getPaidXcmFees(api: ApiPromise, events: Codec[]): Promise<bigint> {
85-
const polkadotFees = events.find((event) => api.events.polkadotXcm.FeesPaid.is(event as GenericEvent))
84+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
85+
const polkadotFees = events.find((event) => api.events.polkadotXcm.FeesPaid.is((event as any).event))
8686
if (!polkadotFees) {
8787
throw new Error('FeesPaid event not found')
8888
}

0 commit comments

Comments
 (0)