update check cosmwasm

This commit is contained in:
Pham Tu 2024-01-23 14:14:40 +07:00
parent 05fe475de7
commit 1dca225624
No known key found for this signature in database
GPG Key ID: 7460FD99133ADA1C
2 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@
"address": "https://rpc.orai.io"
}
],
"cosmwasm_enabled": false,
"cosmwasm_enabled": true,
"sdk_version": "0.45.16",
"coin_type": "118",
"min_tx_fee": "800",
@ -28,4 +28,4 @@
"logo": "https://s2.coinmarketcap.com/static/img/coins/64x64/7533.png"
}
]
}
}

View File

@ -30,7 +30,7 @@ const updateChain = async (chainFile) => {
const filePath = path.join(chainsPath, chainFile);
const chainData = JSON.parse(fs.readFileSync(filePath).toString());
if (logo) chainData.logo = logo;
chainData.cosmwasm_enabled = cosmwasmEnabled;
if (cosmwasmEnabled) chainData.cosmwasm_enabled = cosmwasmEnabled;
fs.writeFileSync(filePath, JSON.stringify(chainData, null, 2));
} catch (ex) {
console.log('Problem with', url, ex.toString());