diff --git a/pkg/deployments/CHANGELOG.md b/pkg/deployments/CHANGELOG.md index 88cd53fd74..c743503ea7 100644 --- a/pkg/deployments/CHANGELOG.md +++ b/pkg/deployments/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 2.1.3 (2021-08-30) + +### Fixes + +- Fixed inconsistent JSON file loading semantics. + ## 2.1.2 (2021-08-30) ### Fixes diff --git a/pkg/deployments/index.ts b/pkg/deployments/index.ts index 836c9c0ad1..fdc1324a60 100644 --- a/pkg/deployments/index.ts +++ b/pkg/deployments/index.ts @@ -29,7 +29,7 @@ export async function getBalancerContractAt(task: string, contract: string, addr * @param contract Name of the contract to looking the ABI of */ export async function getBalancerContractAbi(task: string, contract: string): Promise { - return import(getBalancerContractAbiPath(task, contract)); + return require(getBalancerContractAbiPath(task, contract)); } /** @@ -49,7 +49,7 @@ export async function getBalancerContractAddress(task: string, contract: string, * @param network Name of the network looking the deployment output for (e.g. mainnet, rinkeby, ropsten, etc) */ export async function getBalancerDeployment(task: string, network: string): Promise<{ [key: string]: string }> { - return import(getBalancerDeploymentPath(task, network)); + return require(getBalancerDeploymentPath(task, network)); } /** diff --git a/pkg/deployments/package.json b/pkg/deployments/package.json index fc17d84422..15566b7181 100644 --- a/pkg/deployments/package.json +++ b/pkg/deployments/package.json @@ -1,6 +1,6 @@ { "name": "@balancer-labs/v2-deployments", - "version": "2.1.2", + "version": "2.1.3", "description": "Addresses and ABIs of all Balancer V2 deployed contracts", "license": "GPL-3.0-only", "homepage": "https://github.com/balancer-labs/balancer-v2-monorepo/tree/master/pkg/deployments#readme",