Skip to content

Commit 954df53

Browse files
authored
Check for undefined not falsy (#557)
1 parent 68ceb49 commit 954df53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

platforms/evm/protocols/cctp/src/circleBridge.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export class EvmCircleBridge<N extends Network, C extends EvmChains>
6060
) as bigint;
6161

6262
const circleChainId = circle.circleChainId.get(network, chain);
63-
if (!circleChainId)
63+
if (circleChainId === undefined)
6464
throw new Error(`Circle chain id not found for ${network} ${chain}`);
6565
this.circleChainId = circleChainId;
6666

0 commit comments

Comments
 (0)