Skip to content

Commit

Permalink
fix: adding peaq network to events filter
Browse files Browse the repository at this point in the history
  • Loading branch information
aaitor committed Sep 2, 2024
1 parent 359b6fc commit 4de64fe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nevermined-io/sdk",
"version": "3.0.31",
"version": "3.0.32",
"description": "Javascript SDK for connecting with Nevermined Data Platform ",
"main": "./dist/node/sdk.js",
"typings": "./dist/node/sdk.d.ts",
Expand Down
7 changes: 4 additions & 3 deletions src/events/ContractEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,12 @@ export class ContractEvent extends NeverminedEvent {
// Temporary workaround to work with mumbai
// Infura as a 1000 blocks limit on their api
if (
chainId === 80001 ||
chainId === 10 ||
chainId === 42 ||
chainId === 3338 ||
chainId === 8453 ||
chainId === 10 ||
chainId === 42220
chainId === 42220 ||
chainId === 80001
) {
const latestBlock = await this.client.public.getBlockNumber()
options.fromBlock = latestBlock - 999n
Expand Down

0 comments on commit 4de64fe

Please sign in to comment.