Skip to content
This repository has been archived by the owner on Apr 4, 2022. It is now read-only.

Commit

Permalink
Merge ef1c62f into 2cbe071
Browse files Browse the repository at this point in the history
  • Loading branch information
alfetopito committed May 5, 2020
2 parents 2cbe071 + ef1c62f commit 793bacf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gnosis.pm/dex-js",
"version": "0.3.0-RC.0",
"version": "0.3.0-RC.1",
"description": "Gnosis Protocol JS integration: utils, contracts and other goodies",
"license": "MIT",
"bugs": {
Expand Down
6 changes: 4 additions & 2 deletions src/contracts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@ export function createWrapEtherContract(web3: Web3): WethContract {
return unknownContract as WethContract
}

export function createTcrContract(web3: Web3): TcrContract {
export function createTcrContract(web3: Web3, address?: string): TcrContract {
// const tcrAddress = address || process.env.TCR_CONTRACT_ADDRESS

// FIXME: There's an issue with this conversion: https://github.com/gnosis/dex-telegram/issues/14
const unknownContract = new web3.eth.Contract(tcrAbi) as any
const unknownContract = new web3.eth.Contract(tcrAbi, address) as any
return unknownContract as TcrContract
}

0 comments on commit 793bacf

Please sign in to comment.