Skip to content

Commit

Permalink
Fix deployments loading
Browse files Browse the repository at this point in the history
  • Loading branch information
nventuro committed Aug 30, 2021
1 parent 31c5ca2 commit e97c58c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions pkg/deployments/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions pkg/deployments/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<unknown[]> {
return import(getBalancerContractAbiPath(task, contract));
return require(getBalancerContractAbiPath(task, contract));
}

/**
Expand All @@ -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));
}

/**
Expand Down
2 changes: 1 addition & 1 deletion pkg/deployments/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit e97c58c

Please sign in to comment.