prepare-docs-solc.js 340 B

1234567891011
  1. const path = require('path');
  2. const bre = require('@nomiclabs/buidler');
  3. const { Compiler } = require('@nomiclabs/buidler/internal/solidity/compiler');
  4. const compiler = new Compiler(
  5. bre.config.solc.version,
  6. path.join(bre.config.paths.cache, 'compilers'),
  7. );
  8. module.exports = Object.assign(compiler.getSolc(), { __esModule: true });