11 lines
318 B
JavaScript
11 lines
318 B
JavaScript
const { version } = require('../package.json');
|
|
|
|
module.exports = {
|
|
'github-link': (contractPath) => {
|
|
if (typeof contractPath !== 'string') {
|
|
throw new Error('Missing argument');
|
|
}
|
|
return `https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v${version}/contracts/${contractPath}`;
|
|
},
|
|
};
|