From fad514f2abe2408beefc551ad7f1c4e6688fa6b7 Mon Sep 17 00:00:00 2001 From: Hau Nguyen Van Date: Thu, 21 Dec 2023 18:07:22 +0700 Subject: [PATCH 1/2] update terdermint 37 getCosmWasmClient --- src/libs/cosmjs.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libs/cosmjs.ts b/src/libs/cosmjs.ts index 6127147a6..1e45b924e 100644 --- a/src/libs/cosmjs.ts +++ b/src/libs/cosmjs.ts @@ -5,7 +5,6 @@ import { Coin, GasPrice } from '@cosmjs/stargate'; import { Tendermint37Client } from '@cosmjs/tendermint-rpc'; import { Stargate } from '@injectivelabs/sdk-ts'; import { network } from 'config/networks'; - export type clientType = 'cosmwasm' | 'injective'; const collectWallet = async (chainId: string) => { @@ -24,8 +23,9 @@ const getCosmWasmClient = async ( const { chainId, rpc, signer } = config; const wallet = signer ?? (await collectWallet(chainId)); const defaultAddress = (await wallet.getAccounts())[0]; - const client = await cosmwasm.SigningCosmWasmClient.connectWithSigner( - rpc ?? (network.rpc as string), + const tmClient = await Tendermint37Client.connect(rpc ?? (network.rpc as string)); + const client = await cosmwasm.SigningCosmWasmClient.createWithSigner( + tmClient, wallet, options ?? { gasPrice: GasPrice.fromString(network.fee.gasPrice + network.denom) From e17fe9a85e0b9d5a6f6f83e617331c2c7e51a777 Mon Sep 17 00:00:00 2001 From: Hau Nguyen Van Date: Fri, 22 Dec 2023 10:23:40 +0700 Subject: [PATCH 2/2] update rpc lcd osmosis chain --- src/config/chainInfos.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config/chainInfos.ts b/src/config/chainInfos.ts index e44c0a711..162e96df4 100644 --- a/src/config/chainInfos.ts +++ b/src/config/chainInfos.ts @@ -613,8 +613,8 @@ export const chainInfos: CustomChainInfo[] = [ /// popular networks already included { - rpc: 'https://osmosis-rpc.polkachu.com', - rest: 'https://osmosis-api.polkachu.com', + rpc: 'https://rpc.osmosis.zone/', + rest: 'https://lcd.osmosis.zone/', chainId: 'osmosis-1', chainName: 'Osmosis', networkType: 'cosmos',