helpers.js 318 B

12345678910
  1. const { version } = require('../package.json');
  2. module.exports = {
  3. 'github-link': (contractPath) => {
  4. if (typeof contractPath !== 'string') {
  5. throw new Error('Missing argument');
  6. }
  7. return `https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v${version}/contracts/${contractPath}`;
  8. },
  9. };