mirror of
https://github.com/Instadapp/trustwallet-assets.git
synced 2024-07-29 22:37:31 +00:00
remove spaces
This commit is contained in:
parent
bb3b782553
commit
58a95c88f9
|
@ -16,10 +16,8 @@ import {
|
||||||
} from "../src/test/helpers"
|
} from "../src/test/helpers"
|
||||||
const sharp = require('sharp')
|
const sharp = require('sharp')
|
||||||
const bluebird = require("bluebird")
|
const bluebird = require("bluebird")
|
||||||
|
|
||||||
const foundChains = readDirSync(chainsFolderPath)
|
const foundChains = readDirSync(chainsFolderPath)
|
||||||
|
|
||||||
|
|
||||||
function downsize() {
|
function downsize() {
|
||||||
console.log(`Start resizing`)
|
console.log(`Start resizing`)
|
||||||
bluebird.mapSeries(foundChains, async chain => {
|
bluebird.mapSeries(foundChains, async chain => {
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
const { execSync } = require('child_process');
|
const { execSync } = require('child_process');
|
||||||
const fs = require('fs')
|
|
||||||
const path = require('path')
|
const path = require('path')
|
||||||
const axios = require('axios')
|
const axios = require('axios')
|
||||||
import { readDirSync } from "../src/test/helpers";
|
import { readDirSync } from "../src/test/helpers";
|
||||||
|
@ -10,7 +9,6 @@ const chainAddresses = readDirSync(assetsPath)
|
||||||
chainAddresses.forEach(async addr => {
|
chainAddresses.forEach(async addr => {
|
||||||
const trc20Info = await axios.get(`https://apilist.tronscan.org/api/token_trc20?contract=${addr}&showAll=1`).then(({ data }) => data)
|
const trc20Info = await axios.get(`https://apilist.tronscan.org/api/token_trc20?contract=${addr}&showAll=1`).then(({ data }) => data)
|
||||||
|
|
||||||
|
|
||||||
if (!isChecksum) {
|
if (!isChecksum) {
|
||||||
console.log(`Address ${addr} not in checksum`)
|
console.log(`Address ${addr} not in checksum`)
|
||||||
const checksum = web3.utils.toChecksumAddress(addr)
|
const checksum = web3.utils.toChecksumAddress(addr)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user