From f2dcf932867023f79da39e0a387479d64d67434a Mon Sep 17 00:00:00 2001 From: kilavvy <140459108+kilavvy@users.noreply.github.com> Date: Mon, 3 Feb 2025 13:09:29 +0100 Subject: [PATCH 1/4] Update benchmarks.cairo --- crates/dojo/core-cairo-test/src/tests/benchmarks.cairo | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/dojo/core-cairo-test/src/tests/benchmarks.cairo b/crates/dojo/core-cairo-test/src/tests/benchmarks.cairo index 3f694f47eb..5b3f9191ce 100644 --- a/crates/dojo/core-cairo-test/src/tests/benchmarks.cairo +++ b/crates/dojo/core-cairo-test/src/tests/benchmarks.cairo @@ -208,7 +208,7 @@ fn bench_simple_struct() { #[derive(Copy, Drop, Serde, IntrospectPacked)] #[dojo::model] -struct PositionWithQuaterions { +struct PositionWithQuaternions { #[key] id: felt252, x: felt252, @@ -226,7 +226,7 @@ struct PositionWithQuaterions { fn test_struct_with_many_fields_fixed() { let gas = GasCounterTrait::start(); - let mut pos = PositionWithQuaterions { + let mut pos = PositionWithQuaternions { id: 0x123456789abcdef, x: 0x123456789abcdef, y: 0x123456789abcdef, @@ -264,7 +264,7 @@ fn test_struct_with_many_fields_fixed() { idx += 1; }; - let layout = match dojo::model::Model::::layout() { + let layout = match dojo::model::Model::::layout() { Layout::Fixed(layout) => layout, _ => panic!("expected fixed layout"), }; From 8594ee082ecc6e3bf30b18201247813bf48cd001 Mon Sep 17 00:00:00 2001 From: kilavvy <140459108+kilavvy@users.noreply.github.com> Date: Mon, 3 Feb 2025 13:24:24 +0100 Subject: [PATCH 2/4] Update event.cairo --- crates/dojo/core-cairo-test/src/tests/helpers/event.cairo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/dojo/core-cairo-test/src/tests/helpers/event.cairo b/crates/dojo/core-cairo-test/src/tests/helpers/event.cairo index ade094338f..5594a5bf6a 100644 --- a/crates/dojo/core-cairo-test/src/tests/helpers/event.cairo +++ b/crates/dojo/core-cairo-test/src/tests/helpers/event.cairo @@ -6,7 +6,7 @@ use crate::world::{spawn_test_world, NamespaceDef, TestResource}; /// This file contains some partial event contracts written without the dojo::event /// attribute, to avoid having several contracts with a same name/classhash, -/// as the test runner does not differenciate them. +/// as the test runner does not differentiate them. /// These event contracts are used to test event upgrades in tests/event.cairo. // This event is used as a base to create the "previous" version of an event to be upgraded. From 479302b29331878170aaf81796849d5bcd0b786c Mon Sep 17 00:00:00 2001 From: kilavvy <140459108+kilavvy@users.noreply.github.com> Date: Mon, 3 Feb 2025 13:36:35 +0100 Subject: [PATCH 3/4] Update 20240815022036_remove_world_class_hash.sql --- .../migrations/20240815022036_remove_world_class_hash.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/torii/migrations/20240815022036_remove_world_class_hash.sql b/crates/torii/migrations/20240815022036_remove_world_class_hash.sql index 28c250dd11..17ca5ea7d9 100644 --- a/crates/torii/migrations/20240815022036_remove_world_class_hash.sql +++ b/crates/torii/migrations/20240815022036_remove_world_class_hash.sql @@ -1,4 +1,4 @@ --- NOTE: sqlite does not support deleteing columns. Workaround is to create new table, copy, and delete old. +-- NOTE: sqlite does not support deleting columns. Workaround is to create new table, copy, and delete old. -- Create new table without executor_address and executor_class_hash columns CREATE TABLE worlds_new ( @@ -22,4 +22,4 @@ DROP TABLE worlds; ALTER TABLE worlds_new RENAME TO worlds; -- Renable foreign keys -PRAGMA foreign_keys = ON; \ No newline at end of file +PRAGMA foreign_keys = ON; From 40ef1230c8ce25b862f226e9fef4f390e816fef8 Mon Sep 17 00:00:00 2001 From: kilavvy <140459108+kilavvy@users.noreply.github.com> Date: Mon, 3 Feb 2025 13:37:16 +0100 Subject: [PATCH 4/4] Update types.rs --- crates/torii/graphql/src/types.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/torii/graphql/src/types.rs b/crates/torii/graphql/src/types.rs index 11bc5bb378..b732bd5102 100644 --- a/crates/torii/graphql/src/types.rs +++ b/crates/torii/graphql/src/types.rs @@ -6,7 +6,7 @@ use strum::IntoEnumIterator; use strum_macros::{AsRefStr, Display, EnumIter, EnumString}; // ValueMapping is used to map the values of the fields of a model and TypeMapping their -// correpsonding types. Both are used at runtime to dynamically build/resolve graphql +// corresponding types. Both are used at runtime to dynamically build/resolve graphql // queries/schema. `Value` from async-graphql supports nesting, but TypeRef does not. TypeData is // used to support nesting. pub type ValueMapping = IndexMap;