diff --git a/contracts/test-utils/CHANGELOG.json b/contracts/test-utils/CHANGELOG.json index 62eb505e62..315c518d8d 100644 --- a/contracts/test-utils/CHANGELOG.json +++ b/contracts/test-utils/CHANGELOG.json @@ -61,6 +61,10 @@ { "note": "Update `testWithReferenceFuncAsync` to work with `RevertErrors`", "pr": 2031 + }, + { + "note": "`web3Wrapper` is created with `shouldAllowUnlimitedContractSize` if `UNLIMITED_CONTRACT_SIZE` environment variable is set.", + "pr": 2075 } ] }, diff --git a/contracts/test-utils/src/web3_wrapper.ts b/contracts/test-utils/src/web3_wrapper.ts index 32432a2f2e..b002c70efb 100644 --- a/contracts/test-utils/src/web3_wrapper.ts +++ b/contracts/test-utils/src/web3_wrapper.ts @@ -44,6 +44,7 @@ const gethConfigs = { }; const ganacheConfigs = { shouldUseInProcessGanache: true, + shouldAllowUnlimitedContractSize: env.parseBoolean(EnvVars.UnlimitedContractSize), }; const providerConfigs = testProvider === ProviderType.Ganache ? ganacheConfigs : gethConfigs;