Skip to content

Commit

Permalink
Merge pull request #4 from 1inch/feature/fix-chunck-size-reduction
Browse files Browse the repository at this point in the history
Fix max chunk size
  • Loading branch information
krboktv authored Jun 18, 2021
2 parents 546123c + 422ae7a commit aef947d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@1inch/multicall",
"version": "1.0.1",
"version": "1.0.2",
"description": "High-weight optimized call-processor",
"repository": {
"type": "git",
Expand Down
2 changes: 2 additions & 0 deletions src/multicall.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ export class MultiCallService {
return newResults;
}

params.maxChunkSize = newMaxChunkSize;

if (newMaxChunkSize === 0) {
throw new Error('multicall: exceeded chunks split');
}
Expand Down

0 comments on commit aef947d

Please sign in to comment.