From 1dca225624d2bb87052246cd8fbcceabbea63566 Mon Sep 17 00:00:00 2001 From: Pham Tu Date: Tue, 23 Jan 2024 14:14:40 +0700 Subject: [PATCH] update check cosmwasm --- chains/mainnet/oraichain.json | 4 ++-- update_chain.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/chains/mainnet/oraichain.json b/chains/mainnet/oraichain.json index cfccfbad..361ddf9f 100644 --- a/chains/mainnet/oraichain.json +++ b/chains/mainnet/oraichain.json @@ -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" } ] -} \ No newline at end of file +} diff --git a/update_chain.js b/update_chain.js index 221ebe42..34ed0c67 100644 --- a/update_chain.js +++ b/update_chain.js @@ -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());