Transpile 7bce2b72
This commit is contained in:
10
docs/helpers.js
Normal file
10
docs/helpers.js
Normal file
@ -0,0 +1,10 @@
|
||||
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}`;
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user