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 = { 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'); const Migrations = artifacts.require('./Migrations.sol');
// eslint-disable-next-line func-names
module.exports = function (deployer) { module.exports = function (deployer) {
deployer.deploy(Migrations); deployer.deploy(Migrations);
}; };

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

@ -1,5 +1,6 @@
const Forum = artifacts.require('Forum'); const Forum = artifacts.require('Forum');
// eslint-disable-next-line func-names
module.exports = function (deployer) { module.exports = function (deployer) {
deployer.deploy(Forum); 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_HOST } = process.env;
const { GANACHE_PORT } = process.env; const { GANACHE_PORT } = process.env;
module.exports = { module.exports = {
// See <http://truffleframework.com/docs/advanced/configuration> // See <http://truffleframework.com/docs/advanced/configuration>
// to customize your Truffle configuration! // to customize your Truffle configuration!
compilers: { compilers: {
solc: { solc: {
version: "0.7.1" version: '0.7.1',
} },
}, },
contracts_build_directory: path.join(__dirname, 'build/'), contracts_build_directory: path.join(__dirname, 'build/'),
networks: { networks: {
develop: { develop: {
host: GANACHE_HOST || '127.0.0.1', host: GANACHE_HOST || '127.0.0.1',
port: GANACHE_PORT || '8545', port: GANACHE_PORT || '8545',
network_id: '*', 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