| Crates.io | rhaki_cw_mock_http_querier |
| lib.rs | rhaki_cw_mock_http_querier |
| version | 0.1.0 |
| created_at | 2023-04-05 18:01:20.347361+00 |
| updated_at | 2023-04-05 18:01:20.347361+00 |
| description | Cosmwasm mock querier for testing, that can perform http request to public lcd. |
| homepage | |
| repository | https://github.com/Rhaki/rhaki-cosmwasm-mock-http-querier |
| max_upload_size | |
| id | 831280 |
| size | 13,092 |
On your test file, instead to init you own deps, call create_http_mock function:
let deps: OwnedDeps<_, _, HttpWasmMockQuerier<DefaultWasmMockQuerier>> = create_http_mock(None, url_lcd, None);
Type annotation is needed. If your chain doesn't have any particular custom query, you can leave specify the default as above:
let deps: OwnedDeps<_, _, HttpWasmMockQuerier<DefaultWasmMockQuerier>>