From f3d2e6e90ba92011de64cb0741212c6d8fc6c9b1 Mon Sep 17 00:00:00 2001 From: Philipp Piwo Date: Fri, 18 Dec 2020 16:41:01 +0100 Subject: [PATCH] add word registry interface --- .scripts/postinstall.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.scripts/postinstall.js b/.scripts/postinstall.js index 5794829..e40c23e 100644 --- a/.scripts/postinstall.js +++ b/.scripts/postinstall.js @@ -18,3 +18,6 @@ fs.writeFileSync(__dirname + '/../TokenSaleInterface.aes.js', `module.exports = const TokenVotingInterface = fs.readFileSync(__dirname + '/../contracts/interfaces/TokenVotingInterface.aes', 'utf-8'); fs.writeFileSync(__dirname + '/../TokenVotingInterface.aes.js', `module.exports = \`\n${TokenVotingInterface.replace(/`/g, "\\`")}\`;\n`, 'utf-8'); + +const WordRegistryInterface = fs.readFileSync(__dirname + '/../contracts/interfaces/WordRegistryInterface.aes', 'utf-8'); +fs.writeFileSync(__dirname + '/../WordRegistryInterface.aes.js', `module.exports = \`\n${WordRegistryInterface.replace(/`/g, "\\`")}\`;\n`, 'utf-8');