Browse Source

Fix lint issues in contracts

develop
Apostolos Fanakis 4 years ago
parent
commit
498f20516e
  1. 2
      packages/concordia-contracts/index.js
  2. 1
      packages/concordia-contracts/migrations/1_initial_migration.js
  3. 1
      packages/concordia-contracts/migrations/2_deploy_contracts.js
  4. 40
      packages/concordia-contracts/truffle-config.js

2
packages/concordia-contracts/index.js

@ -9,5 +9,5 @@ try {
}
module.exports = {
contracts: [Forum]
contracts: [Forum],
};

1
packages/concordia-contracts/migrations/1_initial_migration.js

@ -1,5 +1,6 @@
const Migrations = artifacts.require('./Migrations.sol');
// eslint-disable-next-line func-names
module.exports = function (deployer) {
deployer.deploy(Migrations);
};

1
packages/concordia-contracts/migrations/2_deploy_contracts.js

@ -1,5 +1,6 @@
const Forum = artifacts.require('Forum');
// eslint-disable-next-line func-names
module.exports = function (deployer) {
deployer.deploy(Forum);
};

40
packages/concordia-contracts/truffle-config.js

@ -1,27 +1,27 @@
const path = require("path");
const path = require('path');
const { GANACHE_HOST } = process.env;
const { GANACHE_PORT } = process.env;
module.exports = {
// See <http://truffleframework.com/docs/advanced/configuration>
// to customize your Truffle configuration!
compilers: {
solc: {
version: "0.7.1"
}
},
contracts_build_directory: path.join(__dirname, 'build/'),
networks: {
develop: {
host: GANACHE_HOST || '127.0.0.1',
port: GANACHE_PORT || '8545',
network_id: '*',
// See <http://truffleframework.com/docs/advanced/configuration>
// to customize your Truffle configuration!
compilers: {
solc: {
version: '0.7.1',
},
},
contracts_build_directory: path.join(__dirname, 'build/'),
networks: {
develop: {
host: GANACHE_HOST || '127.0.0.1',
port: GANACHE_PORT || '8545',
network_id: '*',
},
test: {
host: GANACHE_HOST || '127.0.0.1',
port: GANACHE_PORT || '8546',
network_id: '*',
},
},
test: {
host: GANACHE_HOST || '127.0.0.1',
port: GANACHE_PORT || '8546',
network_id: '*',
}
}
};

Loading…
Cancel
Save