From 3d23f3b835e6fcf2696a7bceaf06f01f5dca6515 Mon Sep 17 00:00:00 2001 From: LHerskind <16536249+LHerskind@users.noreply.github.com> Date: Sat, 29 Mar 2025 00:48:08 +0000 Subject: [PATCH] fix: eq instead of !== --- yarn-project/sequencer-client/src/slasher/slasher_client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yarn-project/sequencer-client/src/slasher/slasher_client.ts b/yarn-project/sequencer-client/src/slasher/slasher_client.ts index bbc5e592b8ff..eea6069ca2d1 100644 --- a/yarn-project/sequencer-client/src/slasher/slasher_client.ts +++ b/yarn-project/sequencer-client/src/slasher/slasher_client.ts @@ -94,7 +94,7 @@ export class SlasherClient extends WithTracer { ) { super(telemetry, 'slasher'); - if (config.l1Contracts.slashFactoryAddress && config.l1Contracts.slashFactoryAddress !== EthAddress.ZERO) { + if (config.l1Contracts.slashFactoryAddress && !config.l1Contracts.slashFactoryAddress.equals(EthAddress.ZERO)) { const chain = createEthereumChain(config.l1RpcUrls, config.l1ChainId); const publicClient = createPublicClient({ chain: chain.chainInfo,