From 422ae7a5751d880424822381caaae062b90712fb Mon Sep 17 00:00:00 2001 From: Kirill Date: Fri, 18 Jun 2021 16:21:45 +0300 Subject: [PATCH] Fix max chunk size --- package.json | 2 +- src/multicall.service.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index c49b59a..4f4c286 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@1inch/multicall", - "version": "1.0.1", + "version": "1.0.2", "description": "High-weight optimized call-processor", "repository": { "type": "git", diff --git a/src/multicall.service.ts b/src/multicall.service.ts index 6aa56dd..b3d4587 100644 --- a/src/multicall.service.ts +++ b/src/multicall.service.ts @@ -106,6 +106,8 @@ export class MultiCallService { return newResults; } + params.maxChunkSize = newMaxChunkSize; + if (newMaxChunkSize === 0) { throw new Error('multicall: exceeded chunks split'); }