Skip to content

Commit

Permalink
bump pixelaw to 0.5.6 and fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
thiscaspar committed Nov 15, 2024
1 parent 4de322d commit 32a4515
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "My Project",
"image": "ghcr.io/pixelaw/core:0.5.4",
"image": "ghcr.io/pixelaw/core:0.5.5",
"forwardPorts": [
5050,
8080,
Expand Down
13 changes: 12 additions & 1 deletion Scarb.lock
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,22 @@ dependencies = [
"dojo",
"dojo_cairo_test",
"pixelaw",
"pixelaw_test_helpers",
]

[[package]]
name = "pixelaw"
version = "0.5.4"
version = "0.5.6"
source = "git+https://github.com/pixelaw/core?tag=v0.5.6#6e97722394753d0e8ff29a774d8a320a7431c52f"
dependencies = [
"dojo",
]

[[package]]
name = "pixelaw_test_helpers"
version = "0.5.6"
source = "git+https://github.com/pixelaw/core?tag=v0.5.6#6e97722394753d0e8ff29a774d8a320a7431c52f"
dependencies = [
"dojo",
"dojo_cairo_test",
]
7 changes: 4 additions & 3 deletions Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@ version = "0.0.0"
sierra-replace-ids = true

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

[dev-dependencies]
dojo_cairo_test = { git = "https://github.com/dojoengine/dojo", tag = "v1.0.0" }

pixelaw_test_helpers = { git = "https://github.com/pixelaw/core", tag = "v0.5.6" }
#pixelaw_test_helpers = { path = "../core/test_helpers" }

[[target.starknet-contract]]
sierra = true
Expand Down
8 changes: 4 additions & 4 deletions src/tests.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ mod tests {
use pixelaw::core::actions::{actions, IActionsDispatcher, IActionsDispatcherTrait};
use pixelaw::core::models::pixel::{Pixel, PixelUpdate};
use pixelaw::core::models::registry::{App, AppName, CoreActionsAddress};
use pixelaw::core::test_helpers::{
update_test_world, setup_core, setup_core_initialized, setup_apps, setup_apps_initialized,
ZERO_ADDRESS, set_caller, drop_all_events, TEST_POSITION, WHITE_COLOR, RED_COLOR
};

use pixelaw::core::utils::{
get_core_actions, encode_rgba, decode_rgba, Direction, Position, DefaultParameters
};
use pixelaw_test_helpers::{
update_test_world, setup_core, setup_core_initialized, setup_apps, setup_apps_initialized,
ZERO_ADDRESS, set_caller, drop_all_events, TEST_POSITION, WHITE_COLOR, RED_COLOR
};
use starknet::class_hash::Felt252TryIntoClassHash;

use zeroable::Zeroable;
Expand Down

0 comments on commit 32a4515

Please sign in to comment.