Skip to content
This repository has been archived by the owner on Sep 21, 2021. It is now read-only.

Commit

Permalink
Custom contract address
Browse files Browse the repository at this point in the history
  • Loading branch information
ukstv committed May 21, 2017
1 parent fe57df5 commit ce03225
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion lib/configuration.js
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,11 @@ const contractAddress = function () {
} else {
network = process.env.MACHINOMY_NETWORK || 'ropsten' // FIXME Document this
}
return CONTRACTS[network]
if (typeof CONTRACT_ADDRESS !== 'undefined') {
return CONTRACT_ADDRESS
} else {
return CONTRACTS[network]
}
}

const contractInterface = function () {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "machinomy",
"version": "0.3.4",
"version": "0.3.5",
"description": "Micropayments in Ether over HTTP",
"author": "Sergey Ukustov <sergey.ukustov@machinomy.com>",
"license": "Apache-2.0",
Expand Down

0 comments on commit ce03225

Please sign in to comment.