buidler.config.js 586 B

1234567891011121314151617181920212223
  1. usePlugin('solidity-coverage');
  2. usePlugin('@nomiclabs/buidler-truffle5');
  3. extendEnvironment(env => {
  4. const { contract } = env;
  5. env.contract = function (name, body) {
  6. // remove the default account from the accounts list used in tests, in order
  7. // to protect tests against accidentally passing due to the contract
  8. // deployer being used subsequently as function caller
  9. contract(name, accounts => body(accounts.slice(1)));
  10. };
  11. });
  12. module.exports = {
  13. networks: {
  14. buidlerevm: {
  15. blockGasLimit: 10000000,
  16. },
  17. },
  18. solc: {
  19. version: '0.6.12',
  20. },
  21. };