From 6b8bc55c74177842060c117b32b23ac6cbb03881 Mon Sep 17 00:00:00 2001 From: Lawrence Forman Date: Mon, 19 Aug 2019 15:17:07 -0400 Subject: [PATCH] `@0x/contracts-test-utils`: `web3Wrapper` is created with `shouldAllowUnlimitedContractSize` if `UNLIMITED_CONTRACT_SIZE` environment variable is set. --- contracts/test-utils/CHANGELOG.json | 4 ++++ contracts/test-utils/src/web3_wrapper.ts | 1 + 2 files changed, 5 insertions(+) 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;