Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add coverage script for truffle experiment #177

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ build/*
contracts/*
contracts-test/*
coverage/*
lib/*
lib/*
scripts/coverage.js
26 changes: 25 additions & 1 deletion .solcover.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,27 @@
// ganache-cli \
// --chainId 1895 \ (core-option: _chainId)
// --networkId 1597649375983 \ (core-option: network_id)
// --gasLimit=20700000 \ (solidity-coverage sets this)
// -e 10000 \ (default_balance_ether)
// --acctKeys=\"./ganache-accounts.json\" (core-option: accounts)
// --deterministic", (maybe hd_path?)

const ganacheAccounts = require('./ganache-accounts.json');
let accounts = [];

for (address of Object.keys(ganacheAccounts.private_keys)){
accounts.push({
privateKey: ganacheAccounts.private_keys[address],
balance: ganacheAccounts.addresses[address].account.balance
})
}

module.exports = {
skipFiles: ['Migrations.sol']
client: require('ganache-cli'),
skipFiles: ['Migrations.sol'],
providerOptions: {
accounts: accounts,
_chainId: 1895,
network_id: 1597649375983
}
};
19 changes: 0 additions & 19 deletions contracts/Migrations.sol

This file was deleted.

7 changes: 0 additions & 7 deletions migrations/1_initial_migration.js

This file was deleted.

Loading