Skip to content

Commit

Permalink
fix: ensure the manifest existence is correctly tested
Browse files Browse the repository at this point in the history
  • Loading branch information
glihm committed Nov 22, 2024
1 parent b55f1fc commit 96d8c73
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion crates/sozo/ops/src/migration_ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ impl MigrationUi {
/// Returns a new instance with the default frames.
pub fn new(text: Option<&'static str>) -> Self {
if let Some(text) = text {
let frames = spinner!(["⛩️ ", "🥷", "🗡️ "], 500);
let frames = spinner!(["⛩️ ", "🥷 ", "🗡️ "], 500);
let spinner = Spinner::new(frames.clone(), text, None);
Self { spinner, default_frames: frames, silent: false }
} else {
Expand Down
2 changes: 1 addition & 1 deletion crates/sozo/scarbext/src/workspace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ impl WorkspaceExt for Workspace<'_> {
let manifest_dir = self.manifest_path().parent().unwrap();
let manifest_dir = Filesystem::new(manifest_dir.into());

if !manifest_dir.exists() {
if !manifest_dir.child(manifest_name.clone()).exists() {
return Ok(None);
}

Expand Down
2 changes: 1 addition & 1 deletion crates/torii/types-test/Scarb.lock
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ version = "2.8.4"

[[package]]
name = "types_test"
version = "1.0.0"
version = "1.0.1"
dependencies = [
"dojo",
]
2 changes: 1 addition & 1 deletion examples/simple/Scarb.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version = 1

[[package]]
name = "dojo"
version = "1.0.0"
version = "1.0.1"
dependencies = [
"dojo_plugin",
]
Expand Down
2 changes: 1 addition & 1 deletion examples/simple/Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ edition = "2024_07"

[[target.starknet-contract]]
sierra = true
# casm = true
casm = true
build-external-contracts = ["dojo::world::world_contract::world"]

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion examples/spawn-and-move/Scarb.lock
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ dependencies = [

[[package]]
name = "dojo_examples"
version = "1.0.0"
version = "1.0.1"
dependencies = [
"armory",
"bestiary",
Expand Down
18 changes: 9 additions & 9 deletions examples/spawn-and-move/manifest_dev.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"world": {
"class_hash": "0x2f92b70bd2b5a40ddef12c55257f245176870b25c7eb0bd7a60cf1f1f2fbf0e",
"address": "0x54d0f13bf3fb5f15a8674c5204aad35e3022af96bcc23bdbd16b7e297ffd399",
"class_hash": "0x79d9ce84b97bcc2a631996c3100d57966fc2f5b061fb1ec4dfd0040976bcac6",
"address": "0x70058e3886cb7411e8a77db90ee3dd453ac16b763b30bd99b3c8440fe42056e",
"seed": "dojo_examples",
"name": "example",
"entrypoints": [
Expand Down Expand Up @@ -1243,8 +1243,8 @@
},
"contracts": [
{
"address": "0x7d32611d1b96df37b041f0a285bf340227cebc144d46c2f34cedd81e2fd5239",
"class_hash": "0x3449ac13c575e4ed3a0e897bf16929f449f0fadea49b119dd25046f6b347301",
"address": "0x1cc5853cbf65c96d7c3c8f951e6315f3c1f19a34ace7b579da9ba87b974dce3",
"class_hash": "0x636c2cf31b094097625cb5ada96f54ee9a3f7bc6d8cde00cc85e5ef0c622c8b",
"abi": [
{
"type": "impl",
Expand Down Expand Up @@ -1584,7 +1584,7 @@
]
},
{
"address": "0x74967fafd9ea26b0c14287fdafa5867cf6e2d16d9e6fda3dde4361a7cf75c9d",
"address": "0x32bc6ef441c52acfc62ee1186885760803d88e165119fdad6e16f9424547981",
"class_hash": "0x16e8d864b5b5484bad069133a751f72961f9e5edade4f4f3b3b6076f6394c5b",
"abi": [
{
Expand Down Expand Up @@ -1778,7 +1778,7 @@
]
},
{
"address": "0x7077c3246c125a91b17e8c0a90f45af790ad6feabe65a3df225277d9eb02310",
"address": "0x7e5b903baa82407f74bd0a573352e0ca33f2b9fac3bcc2e35230119841cd08",
"class_hash": "0x43e7cc34a35abdb9baf6804c71526811d8d3cccf58d66be5a095bd79b9be82e",
"abi": [
{
Expand Down Expand Up @@ -1954,7 +1954,7 @@
]
},
{
"address": "0x7e2c18814dd45847ae85d3c8eb40196cc2aa869614efd1ff67edf380c45cb8e",
"address": "0x72b95d835f6158dd1454c1b4463a91222c6088f1bf5dd2cdd09268f92dad16f",
"class_hash": "0xa1884cbaa79b05287019b513a94f993f0d98ed4d9602370bc2e5aaa04feebc",
"abi": [
{
Expand Down Expand Up @@ -2178,13 +2178,13 @@
"events": [
{
"members": [],
"class_hash": "0x3dc79bcf7e88304d1331cdf9e232ff9f78ac19a719e998bd68016eb5ebb3e38",
"class_hash": "0x2999886b1a0ee530eb279f9808632b70750ac93418da8493fb554eebfb7b99a",
"tag": "ns-Moved",
"selector": "0x6d4c1ac3717ba997500153c52344a2acac5123bbfa0f78d3dcc04cb786826b0"
},
{
"members": [],
"class_hash": "0x7ddb49b2db32089d1bb14a6f66d91582fffdd09d18325187840de65ae443598",
"class_hash": "0x4771fc691467af7b9b606ae34d5fa9abe762adb856d65d2c508ce66b3941671",
"tag": "ns-MyInit",
"selector": "0xe1c030210beae7e2153a7b996d7d2ae6a428faf16a61f192f02178718b6f0"
}
Expand Down

0 comments on commit 96d8c73

Please sign in to comment.