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

Commit

Permalink
Using proper name for token
Browse files Browse the repository at this point in the history
  • Loading branch information
Agustin Modugno committed Apr 15, 2019
1 parent 0d74b36 commit 110d92a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion deploy.example.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"environments": {
"remoteDevelopment": {
"deployPrivateKey": "<private-key-without-0x>",
"wibsonToken": "<deployed-wibson-token-address>"
"deployedToken": "<deployed-token-address>"
}
}
}
2 changes: 1 addition & 1 deletion migrations/4_batpay.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = function (deployer, network) {
deployer.link(Challenge, BatPay)
deployer.link(MassExitLib, BatPay)
deployer.then(() => {
if(network === "remoteDevelopment") return { address: process.env.wibsonToken }
if(network === "remoteDevelopment") return { address: process.env.deployedToken }
return StandardToken.deployed()
}).then(token => {
return deployer.deploy(BatPay,
Expand Down
4 changes: 2 additions & 2 deletions utils/DeploymentUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ exports.getProvider = function getProvider(network, environment) {
const envConfig = config.environments[environment] || {};
const infura = `https://${network}.infura.io/v3/${config.infuraToken}`;
const privKeys = [envConfig.deployPrivateKey];
const wibsonToken = [envConfig.wibsonToken];
process.env.wibsonToken = wibsonToken
const deployedToken = [envConfig.deployedToken];
process.env.deployedToken = deployedToken
// web3-provider-engine is not synced with truffle last version,
// so we would use just this at the moment
// return new PrivKeyWalletProvider(privKeys, infura);
Expand Down

0 comments on commit 110d92a

Please sign in to comment.