Skip to content

Commit 0939d78

Browse files
authored
Fixed Sylvia imports (#211)
2 parents 6c9491c + c47717f commit 0939d78

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/pages/cw-multi-test/getting-started/counter/counter-sylvia.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ use crate::msg::{CounterInitMsg, CounterResponse};
257257
use cosmwasm_std::{Response, StdResult};
258258
use cw_storage_plus::Item;
259259
use sylvia::contract;
260-
use sylvia::types::{ExecCtx, InstantiateCtx, QueryCtx};
260+
use sylvia::ctx::{ExecCtx, InstantiateCtx, QueryCtx};
261261

262262
pub struct CounterContract {
263263
pub count: Item<u8>,
@@ -322,7 +322,7 @@ use crate::msg::{CounterInitMsg, CounterResponse};
322322
use cosmwasm_std::{Response, StdResult};
323323
use cw_storage_plus::Item;
324324
use sylvia::contract;
325-
use sylvia::types::{ExecCtx, InstantiateCtx, QueryCtx};
325+
use sylvia::ctx::{ExecCtx, InstantiateCtx, QueryCtx};
326326
```
327327

328328
The first `use{:rust}` statement imports message structures for handling initialization of the

src/pages/cw-multi-test/getting-started/writing-tests.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ since we haven't written any tests yet. Follow the next chapters, and make the c
315315
 use cosmwasm_std::{Response, StdResult};
316316
 use cw_storage_plus::Item;
317317
 use sylvia::contract;
318-
[0;30m use sylvia::types::{ExecCtx, InstantiateCtx, QueryCtx};
318+
[0;30m use sylvia::ctx::{ExecCtx, InstantiateCtx, QueryCtx};
319319

320320
 pub struct CounterContract {
321321
 pub count: Item<u8>,

src/pages/cw-multi-test/getting-started/writing-tests/writing-tests-sylvia.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ coverage report (similar to the one generated by Tarpaulin) is shown below.
230230
 use cosmwasm_std::{Response, StdResult};
231231
 use cw_storage_plus::Item;
232232
 use sylvia::contract;
233-
[0;30m use sylvia::types::{ExecCtx, InstantiateCtx, QueryCtx};
233+
[0;30m use sylvia::ctx::{ExecCtx, InstantiateCtx, QueryCtx};
234234

235235
 pub struct CounterContract {
236236
 pub count: Item<u8>,
@@ -385,7 +385,7 @@ The detailed code coverage report (similar to the one generated by Tarpaulin) is
385385
 use cosmwasm_std::{Response, StdResult};
386386
 use cw_storage_plus::Item;
387387
 use sylvia::contract;
388-
[0;30m use sylvia::types::{ExecCtx, InstantiateCtx, QueryCtx};
388+
[0;30m use sylvia::ctx::{ExecCtx, InstantiateCtx, QueryCtx};
389389

390390
 pub struct CounterContract {
391391
 pub count: Item<u8>,
@@ -536,7 +536,7 @@ The code coverage report (similar to the one generated by Tarpaulin) is as follo
536536
 use cosmwasm_std::{Response, StdResult};
537537
 use cw_storage_plus::Item;
538538
 use sylvia::contract;
539-
[0;30m use sylvia::types::{ExecCtx, InstantiateCtx, QueryCtx};
539+
[0;30m use sylvia::ctx::{ExecCtx, InstantiateCtx, QueryCtx};
540540

541541
 pub struct CounterContract {
542542
 pub count: Item<u8>,
@@ -747,7 +747,7 @@ Check the code coverage report:
747747
 use cosmwasm_std::{Response, StdResult};
748748
 use cw_storage_plus::Item;
749749
 use sylvia::contract;
750-
[0;30m use sylvia::types::{ExecCtx, InstantiateCtx, QueryCtx};
750+
[0;30m use sylvia::ctx::{ExecCtx, InstantiateCtx, QueryCtx};
751751

752752
 pub struct CounterContract {
753753
 pub count: Item<u8>,
@@ -947,7 +947,7 @@ Nice, you have reached 💯% code coverage.
947947
 use cosmwasm_std::{Response, StdResult};
948948
 use cw_storage_plus::Item;
949949
 use sylvia::contract;
950-
[0;30m use sylvia::types::{ExecCtx, InstantiateCtx, QueryCtx};
950+
[0;30m use sylvia::ctx::{ExecCtx, InstantiateCtx, QueryCtx};
951951

952952
 pub struct CounterContract {
953953
 pub count: Item<u8>,

0 commit comments

Comments
 (0)