From 693e81fdff811885a7760f688e433df6b5b892d4 Mon Sep 17 00:00:00 2001 From: nikdementev Date: Wed, 9 Jun 2021 17:06:43 +0300 Subject: [PATCH] fix: generate map instance --- mustache/templates/instance/create-yaml.js | 2 +- src/contractsToInstances.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mustache/templates/instance/create-yaml.js b/mustache/templates/instance/create-yaml.js index a4c7a46..7046a61 100644 --- a/mustache/templates/instance/create-yaml.js +++ b/mustache/templates/instance/create-yaml.js @@ -39,7 +39,7 @@ module.exports = { Contracts.forEach(({ address, name, amount, currency }) => { if (address != null) { - contractsToInstancesContent += `contractsToInstances.set(${address.toLowerCase()},${space}//${space}${name}-${currency}-${amount}${newLine}${doubleSpace}${amount}${'-'}${currency}${newLine});${newLine}`; + contractsToInstancesContent += `contractsToInstances.set(${address.toLowerCase()},${space}//${space}${name}-${currency}-${amount}${newLine}${doubleSpace}"${amount}${'-'}${currency}"${newLine});${newLine}`; } }); diff --git a/src/contractsToInstances.ts b/src/contractsToInstances.ts index f34b8b3..d67a762 100644 --- a/src/contractsToInstances.ts +++ b/src/contractsToInstances.ts @@ -1,6 +1,6 @@ // this is a read only file generated by manual inputs to file mustache/templates/rates/contracts.js. export let contractsToInstances = new Map(); contractsToInstances.set('0x0ce22770451a8acad1220d9d1678656b4fae4a1d', // Instance-bsc-0.1 -  0.1-bsc +  "0.1-bsc" ); // this is a read only file generated by manual inputs to file mustache/templates/rates/contracts.js.