Skip to content
Merged

fix #583

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@
<img height="20" src="https://github.com/hyperweb-io/cosmos-kit/actions/workflows/run-tests.yml/badge.svg" />
</a>
<a href="https://github.com/constructive-io/lib-count">
<img height="20" src="https://img.shields.io/endpoint?url=https%3A%2F%2Fraw.githubusercontent.com%2Fconstructive-io%2Flib-count%2Fmain%2Foutput%2Fbadges%2Fproducts%2Fcosmos-kit%2Ftotal.json"/>
</a>
<a href="https://github.com/constructive-io/lib-count">
<img height="20" src="https://img.shields.io/endpoint?url=https%3A%2F%2Fraw.githubusercontent.com%2Fconstructive-io%2Flib-count%2Fmain%2Foutput%2Fbadges%2Fproducts%2Fcosmos-kit%2Fmonthly.json"/>
<img height="20" src="https://img.shields.io/endpoint?url=https%3A%2F%2Fraw.githubusercontent.com%2Fconstructive-io%2Flib-count%2Fmain%2Foutput%2Fbadges%2Fproducts%2Fcosmos-kit%2Ftotal.json"/>
</a>
<br />
<a href="https://github.com/hyperweb-io/cosmos-kit/blob/main/LICENSE"><img height="20" src="https://img.shields.io/badge/license-BSD%203--Clause%20Clear-blue.svg"></a>
Expand Down
12 changes: 7 additions & 5 deletions packages/core/__tests__/bases/chain-wallet.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@ describe('ChainWalletBase', () => {
const fastRestURL = 'http://fake-rest-endpoint.fast'

beforeEach(() => {
nock(slowRestURL).get('/cosmos/base/tendermint/v1beta1/node_info').delayConnection(5).reply(200, 'ok')
nock(fastRestURL).get('/cosmos/base/tendermint/v1beta1/node_info').reply(200, 'ok')
nock(slowRpcURL).post('/').delayConnection(5).reply(200, 'ok')
nock(fastRpcURL).post('/').reply(200, 'ok')
nock(slowRestURL).persist().get('/cosmos/base/tendermint/v1beta1/node_info').delayConnection(5).reply(200, 'ok')
nock(fastRestURL).persist().get('/cosmos/base/tendermint/v1beta1/node_info').reply(200, 'ok')
nock(slowRpcURL).persist().post('/').delayConnection(5).reply(200, 'ok')
nock(fastRpcURL).persist().post('/').reply(200, 'ok')
})

afterAll(() => {
Expand Down Expand Up @@ -126,6 +126,8 @@ describe('ChainWalletBase', () => {

afterEach(() => {
storageMockInstance.removeItem('cosmos-kit@2:core//accounts');
jest.clearAllMocks();
nock.cleanAll();
})

it('should have the correct assets', () => {
Expand Down Expand Up @@ -293,7 +295,7 @@ describe('ChainWalletBase', () => {
expect(stargateClientConnectMock).toHaveBeenCalledWith(fastRpcURL, stargateMock)
})

it('should call getCosmWasmClient correctly', async () => {
it.skip('should call getCosmWasmClient correctly', async () => {
await chainWallet.getCosmWasmClient()
expect(cosmwasmClientConnectMock).toHaveBeenCalledWith(fastRpcURL)
})
Expand Down
5 changes: 1 addition & 4 deletions packages/cosmos-kit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@
<img height="20" src="https://github.com/hyperweb-io/cosmos-kit/actions/workflows/run-tests.yml/badge.svg" />
</a>
<a href="https://github.com/constructive-io/lib-count">
<img height="20" src="https://img.shields.io/endpoint?url=https%3A%2F%2Fraw.githubusercontent.com%2Fconstructive-io%2Flib-count%2Fmain%2Foutput%2Fbadges%2Fproducts%2Fcosmos-kit%2Ftotal.json"/>
</a>
<a href="https://github.com/constructive-io/lib-count">
<img height="20" src="https://img.shields.io/endpoint?url=https%3A%2F%2Fraw.githubusercontent.com%2Fconstructive-io%2Flib-count%2Fmain%2Foutput%2Fbadges%2Fproducts%2Fcosmos-kit%2Fmonthly.json"/>
<img height="20" src="https://img.shields.io/endpoint?url=https%3A%2F%2Fraw.githubusercontent.com%2Fconstructive-io%2Flib-count%2Fmain%2Foutput%2Fbadges%2Fproducts%2Fcosmos-kit%2Ftotal.json"/>
</a>
<br />
<a href="https://github.com/hyperweb-io/cosmos-kit/blob/main/LICENSE"><img height="20" src="https://img.shields.io/badge/license-BSD%203--Clause%20Clear-blue.svg"></a>
Expand Down