validate only selected network contract addresses
This commit is contained in:
parent
7f657c1d7d
commit
76cda01ee1
@ -11,9 +11,9 @@ const TOKENS = {
|
||||
}
|
||||
|
||||
const addressMap = new Map()
|
||||
for (const [key, value] of Object.entries(instances)) {
|
||||
const netId = Number(key.substring(5))
|
||||
for (const [currency, { instanceAddress, symbol, decimals }] of Object.entries(value)) {
|
||||
const instance = instances[`netId${netId}`]
|
||||
|
||||
for (const [currency, { instanceAddress, symbol, decimals }] of Object.entries(instance)) {
|
||||
Object.entries(instanceAddress).forEach(([amount, address]) =>
|
||||
addressMap.set(`${netId}_${address}`, {
|
||||
currency,
|
||||
@ -22,7 +22,6 @@ for (const [key, value] of Object.entries(instances)) {
|
||||
decimals,
|
||||
}),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
const sleep = ms => new Promise(res => setTimeout(res, ms))
|
||||
|
Loading…
Reference in New Issue
Block a user