Update scripts

This commit is contained in:
Mykola 2019-11-12 13:26:53 -08:00
parent 55539bd624
commit b49005645d
3 changed files with 5 additions and 3 deletions

View File

@ -566,6 +566,7 @@
"0x237c0e91c28d20254A2F25976b81262E63bB767f",
"0x23812334fC611d99E2506D1493791Cc87Fa6Eddd",
"0x2396FBC0e2E3AE4B7206EbDb5706e2a5920349CB",
"0x239836e951DD75Fea01beF8ba039119dc8D5352f",
"0x23aaB5E8cDAFCa91849f0c8Fab42500fbdfed9Bd",
"0x23aE3C5B39B12f0693e05435EeaA1e51d8c61530",
"0x23B608675a2B2fB1890d3ABBd85c5775c51691d5",
@ -2912,6 +2913,7 @@
"0xBD4fb45b05DD4f0B55b6451B58f3DBA7fFB1b34B",
"0xBd56E9477Fc6997609Cf45F84795eFbDAC642Ff1",
"0xbd95145EE25E4203d90592834c688C92653532A6",
"0xbDc4dD4B2f62c446485a1D2E39569466A2Fbd829",
"0xBDC5bAC39Dbe132B1E030e898aE3830017D7d969",
"0xbDCDf13e7ECE3dFBe926979d2fc9942648A4083d",
"0xBDCFbf5C4D91Abc0bC9709C7286d00063c0e6F22",

View File

@ -4,9 +4,9 @@
"description": "Assets consumed by Trust Wallet",
"main": "index.js",
"scripts": {
"verify": "ts-node ./script/verifyTokens",
"verify": "npm run cleanup && ts-node ./script/verifyTokens",
"test": "npm run cleanup && jest",
"cleanup": "find ./.. -name '.DS_Store' -type f -delete",
"cleanup": "find ./.. -iname '.DS_Store' -type f -delete",
"update-bep2": "node ./script/updateBEP2",
"checksum": "npm run cleanup && node ./script/erc20_to_checksum",
"list": "npm run cleanup && ts-node ./script/gen_list"

View File

@ -11,7 +11,7 @@ ethereumSidechains.forEach(chain => {
})
const tokens = [].concat.apply([], addresses).map(a => a.toLowerCase())
axios.post(TRUST_API_URL, tokens, {
axios.post(TRUST_API_URL, {tokens}, {
headers: {
TOKEN_VERIFICATION_KEY
}