mirror of
https://github.com/tornadocash/tornado-subgraph.git
synced 2024-12-23 01:39:39 +01:00
fix: generate map instance
This commit is contained in:
parent
28ae284221
commit
693e81fdff
@ -39,7 +39,7 @@ module.exports = {
|
|||||||
|
|
||||||
Contracts.forEach(({ address, name, amount, currency }) => {
|
Contracts.forEach(({ address, name, amount, currency }) => {
|
||||||
if (address != null) {
|
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}`;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
// this is a read only file generated by manual inputs to file mustache/templates/rates/contracts.js.
|
// this is a read only file generated by manual inputs to file mustache/templates/rates/contracts.js.
|
||||||
export let contractsToInstances = new Map<string, string>();
|
export let contractsToInstances = new Map<string, string>();
|
||||||
contractsToInstances.set('0x0ce22770451a8acad1220d9d1678656b4fae4a1d', // Instance-bsc-0.1
|
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.
|
// this is a read only file generated by manual inputs to file mustache/templates/rates/contracts.js.
|
||||||
|
Loading…
Reference in New Issue
Block a user