Skip to content

Commit 32a4515

Browse files
committed
bump pixelaw to 0.5.6 and fixed test
1 parent 4de322d commit 32a4515

File tree

4 files changed

+21
-9
lines changed

4 files changed

+21
-9
lines changed

.devcontainer/devcontainer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "My Project",
3-
"image": "ghcr.io/pixelaw/core:0.5.4",
3+
"image": "ghcr.io/pixelaw/core:0.5.5",
44
"forwardPorts": [
55
5050,
66
8080,

Scarb.lock

+12-1
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,22 @@ dependencies = [
2929
"dojo",
3030
"dojo_cairo_test",
3131
"pixelaw",
32+
"pixelaw_test_helpers",
3233
]
3334

3435
[[package]]
3536
name = "pixelaw"
36-
version = "0.5.4"
37+
version = "0.5.6"
38+
source = "git+https://github.com/pixelaw/core?tag=v0.5.6#6e97722394753d0e8ff29a774d8a320a7431c52f"
3739
dependencies = [
3840
"dojo",
3941
]
42+
43+
[[package]]
44+
name = "pixelaw_test_helpers"
45+
version = "0.5.6"
46+
source = "git+https://github.com/pixelaw/core?tag=v0.5.6#6e97722394753d0e8ff29a774d8a320a7431c52f"
47+
dependencies = [
48+
"dojo",
49+
"dojo_cairo_test",
50+
]

Scarb.toml

+4-3
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,14 @@ version = "0.0.0"
77
sierra-replace-ids = true
88

99
[dependencies]
10-
#pixelaw = { git = "https://github.com/pixelaw/core", tag = "v0.5.4" }
11-
pixelaw = { path = "../core/contracts" }
10+
pixelaw = { git = "https://github.com/pixelaw/core", tag = "v0.5.6" }
11+
#pixelaw = { path = "../core/contracts" }
1212
dojo = { git = "https://github.com/dojoengine/dojo", tag = "v1.0.0" }
1313

1414
[dev-dependencies]
1515
dojo_cairo_test = { git = "https://github.com/dojoengine/dojo", tag = "v1.0.0" }
16-
16+
pixelaw_test_helpers = { git = "https://github.com/pixelaw/core", tag = "v0.5.6" }
17+
#pixelaw_test_helpers = { path = "../core/test_helpers" }
1718

1819
[[target.starknet-contract]]
1920
sierra = true

src/tests.cairo

+4-4
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ mod tests {
1616
use pixelaw::core::actions::{actions, IActionsDispatcher, IActionsDispatcherTrait};
1717
use pixelaw::core::models::pixel::{Pixel, PixelUpdate};
1818
use pixelaw::core::models::registry::{App, AppName, CoreActionsAddress};
19-
use pixelaw::core::test_helpers::{
20-
update_test_world, setup_core, setup_core_initialized, setup_apps, setup_apps_initialized,
21-
ZERO_ADDRESS, set_caller, drop_all_events, TEST_POSITION, WHITE_COLOR, RED_COLOR
22-
};
2319

2420
use pixelaw::core::utils::{
2521
get_core_actions, encode_rgba, decode_rgba, Direction, Position, DefaultParameters
2622
};
23+
use pixelaw_test_helpers::{
24+
update_test_world, setup_core, setup_core_initialized, setup_apps, setup_apps_initialized,
25+
ZERO_ADDRESS, set_caller, drop_all_events, TEST_POSITION, WHITE_COLOR, RED_COLOR
26+
};
2727
use starknet::class_hash::Felt252TryIntoClassHash;
2828

2929
use zeroable::Zeroable;

0 commit comments

Comments
 (0)