forked from hashgraph/hedera-smart-contracts
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(deps-dev): Bump @hashgraph/hedera-local from 2.25.2 to 2.26.2 (h…
…ashgraph#799) * build(deps-dev): Bump @hashgraph/hedera-local from 2.25.2 to 2.26.0 Bumps [@hashgraph/hedera-local](https://github.com/hashgraph/hedera-local-node) from 2.25.2 to 2.26.0. - [Release notes](https://github.com/hashgraph/hedera-local-node/releases) - [Commits](hashgraph/hedera-local-node@v.2.25.2...v2.26.0) --- updated-dependencies: - dependency-name: "@hashgraph/hedera-local" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * build(deps-dev): Bump @hashgraph/hedera-local from 2.25.2 to 2.26.1 Signed-off-by: Logan Nguyen <[email protected]> * fix: updated CONTRACT_REVERT error code to the value 3 Signed-off-by: Logan Nguyen <[email protected]> * fix: increased maxDataSize for multicall test Signed-off-by: Logan Nguyen <[email protected]> * dep: upgraded local-node to 2.26.2 Signed-off-by: Logan Nguyen <[email protected]> --------- Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: Logan Nguyen <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Logan Nguyen <[email protected]>
- Loading branch information
1 parent
07a5c43
commit a869dc0
Showing
5 changed files
with
143 additions
and
61 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -263,9 +263,11 @@ describe('Multicall Test Suite', function () { | |
expect(bytes).to.gte(42624); | ||
}); | ||
|
||
it('should NOT be able to aggregate 115 calls to processLongOutput', async function () { | ||
const n = 115; | ||
const maxDataSize = 25 * 1024 * 2; // 25 kb | ||
it('should NOT be able to aggregate 585 calls to processLongOutput', async function () { | ||
// @note: since [email protected], the maximum data size was increased to 128 KiB. | ||
const maxDataSize = 128 * 1024 * 2; // 262144 characters - 128 KiB | ||
const n = 585; // 262218 characters ~ 128.03 KiB | ||
|
||
let hasError = false; | ||
try { | ||
await multicallProcessLongOutput(n); | ||
|
@@ -275,7 +277,7 @@ describe('Multicall Test Suite', function () { | |
expect(e.message).to.exist; | ||
|
||
// Output is too large and the call is reverted. | ||
// The call exceeded the call size limit of 25KB | ||
// The call exceeded the call size limit of 128 KiB | ||
const EXPECTED_ERROR_MESSAGE = `exceeds ${maxDataSize} characters`; | ||
expect(e.message).to.contain(EXPECTED_ERROR_MESSAGE); | ||
} | ||
|