From 921ffd24256b9e23ecdb5709081dfff7d0ae20e4 Mon Sep 17 00:00:00 2001 From: Ryan Goree Date: Thu, 21 Mar 2024 12:40:08 -0500 Subject: [PATCH] Account for edge case where is --- packages/council-core/src/models/proposal/ReadProposal.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/council-core/src/models/proposal/ReadProposal.ts b/packages/council-core/src/models/proposal/ReadProposal.ts index 58eac9d9..d453b601 100644 --- a/packages/council-core/src/models/proposal/ReadProposal.ts +++ b/packages/council-core/src/models/proposal/ReadProposal.ts @@ -428,8 +428,8 @@ export class ReadProposal extends Model { // Ensure we don't try to fetch a block range including blocks that don't // exist yet. if ( - toBlock && - latestBlock?.blockNumber && + typeof toBlock === "bigint" && + typeof latestBlock?.blockNumber === "bigint" && latestBlock.blockNumber < toBlock ) { toBlock = latestBlock.blockNumber;