From de0c9dd4a414e8d68218482f6547b90be8d211af Mon Sep 17 00:00:00 2001 From: girazoki Date: Wed, 12 Feb 2025 15:08:39 +0100 Subject: [PATCH] fix tests related to e2e (#871) --- .../test_zombie_tanssi_relay_eth_bridge.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/suites/zombie_tanssi_relay_eth_bridge/test_zombie_tanssi_relay_eth_bridge.ts b/test/suites/zombie_tanssi_relay_eth_bridge/test_zombie_tanssi_relay_eth_bridge.ts index 5726e06f0..2aa884890 100644 --- a/test/suites/zombie_tanssi_relay_eth_bridge/test_zombie_tanssi_relay_eth_bridge.ts +++ b/test/suites/zombie_tanssi_relay_eth_bridge/test_zombie_tanssi_relay_eth_bridge.ts @@ -318,7 +318,7 @@ describeSuite({ for (let i = 0; i < 3 * blocksPerSession; ++i) { const latestBlockHash = await relayApi.rpc.chain.getBlockHash(); const author = (await relayApi.derive.chain.getHeader(latestBlockHash)).author; - if (author.toString() === operatorAccount.address) { + if (author?.toString() === operatorAccount.address) { return; } await context.waitBlock(1, "Tanssi-relay");