Skip to content

Commit

Permalink
improve: relax >0 timestamp constraint (#769)
Browse files Browse the repository at this point in the history
Signed-off-by: james-a-morris <[email protected]>
  • Loading branch information
james-a-morris authored Nov 12, 2024
1 parent 8af8193 commit 952bb0c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@across-protocol/sdk",
"author": "UMA Team",
"version": "3.2.12",
"version": "3.2.13",
"license": "AGPL-3.0",
"homepage": "https://docs.across.to/reference/sdk",
"files": [
Expand Down
5 changes: 4 additions & 1 deletion src/clients/BundleDataClient/BundleDataClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1316,7 +1316,10 @@ export class BundleDataClient {
];
// Sanity checks:
assert(endTime >= startTime, "End time should be greater than start time.");
assert(startTime > 0, "Start time should be greater than 0.");
assert(
startBlockForChain === 0 || startTime > 0,
"Start timestamp must be greater than 0 if the start block is greater than 0."
);
return [chainId, [startTime, endTime]];
})
).filter(isDefined)
Expand Down

0 comments on commit 952bb0c

Please sign in to comment.