Skip to content

Commit

Permalink
Added setup script to btc-erc. Fixed missing network parameter in mig…
Browse files Browse the repository at this point in the history
…ration js files
  • Loading branch information
alexeiZamyatin committed Nov 9, 2018
1 parent 6cbeda7 commit 62c2811
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion migrations/4_ERCXXX_BTCRelay.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var BTCRelay = artifacts.require("./BTCRelay/BTCRelay.sol");
var ERCXXX_BTCRelay = artifacts.require("./impl/ERCXXX_BTCRelay.sol");

module.exports = function (deployer) {
module.exports = function (deployer, network) {
if (network == "development") {
deployer.deploy(BTCRelay).then(function () {
return deployer.deploy(ERCXXX_BTCRelay, BTCRelay.address);
Expand Down
2 changes: 1 addition & 1 deletion migrations/6_ERCXXX_SGXRelay.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var ERCXXX_SGXRelay = artifacts.require("./impl/ERCXXX_SGXRelay.sol");

module.exports = function (deployer) {
module.exports = function (deployer, network) {
if (network == "development") {
deployer.deploy(ERCXXX_SGXRelay);
} else {
Expand Down
11 changes: 11 additions & 0 deletions setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

# Start ganache on default port (separate terminal & thread)
x-terminal-emulator -e ganache-cli

# Compile contracts
truffle compile
# deploy on development network
truffle migrate --network development


0 comments on commit 62c2811

Please sign in to comment.