Skip to content

Commit

Permalink
fix: remove unused param doc
Browse files Browse the repository at this point in the history
  • Loading branch information
glihm committed Mar 29, 2024
1 parent 8643e46 commit 694f497
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 32 deletions.
1 change: 0 additions & 1 deletion crates/dojo-core/src/world.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,6 @@ mod world {
///
/// * `keys` - The keys of the event.
/// * `values` - The data to be logged by the event.
/// * `is_model_event` - Indicates if the event to emit contains a model.
fn emit(self: @ContractState, mut keys: Array<felt252>, values: Span<felt252>) {
let system = get_caller_address();
system.serialize(ref keys);
Expand Down
2 changes: 1 addition & 1 deletion crates/sozo/ops/src/events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ mod tests {
let result = extract_events(&manifest, &manifest_dir).unwrap();

// we are just collecting all events from manifest file so just verifying count should work
assert_eq!(result.len(), 12);
assert_eq!(result.len(), 11);
}

use cainome::parser::tokens::{Array, Composite, CompositeInner, CompositeType};
Expand Down
17 changes: 0 additions & 17 deletions examples/spawn-and-move/abis/base/contracts/actions.json
Original file line number Diff line number Diff line change
Expand Up @@ -227,18 +227,6 @@
}
]
},
{
"type": "event",
"name": "dojo_examples::actions::actions::StoredName",
"kind": "struct",
"members": [
{
"name": "name",
"type": "core::felt252",
"kind": "data"
}
]
},
{
"type": "event",
"name": "dojo_examples::actions::actions::Event",
Expand All @@ -248,11 +236,6 @@
"name": "UpgradeableEvent",
"type": "dojo::components::upgradeable::upgradeable::Event",
"kind": "nested"
},
{
"name": "StoredName",
"type": "dojo_examples::actions::actions::StoredName",
"kind": "nested"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
kind = "DojoContract"
class_hash = "0x2a76f77a828c13813820157716fc9af189ca51a5be6f40e5168392345ad22b7"
class_hash = "0x16b1037beb348c3cf11c7f10733d366c7f29bc9d9172ba663421e2af4dab83c"
abi = "abis/base/contracts/actions.json"
reads = []
writes = []
Expand Down
12 changes: 0 additions & 12 deletions examples/spawn-and-move/src/actions.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,6 @@ mod actions {
use dojo_examples::models::{Position, Moves, Direction, Vec2};
use dojo_examples::utils::next_position;

#[event]
#[derive(Drop, starknet::Event)]
enum Event {
StoredName: StoredName,
}

#[derive(Drop, starknet::Event)]
struct StoredName {
name: felt252
}

#[derive(Model, Copy, Drop, Serde)]
#[dojo::event]
struct Moved {
Expand Down Expand Up @@ -96,7 +85,6 @@ mod actions {
let next = next_position(position, direction);
set!(world, (moves, next));
emit!(world, (Moved { player, direction }));
emit!(world, (Event::StoredName(StoredName { name: 'dojo' })));
return ();
}
}
Expand Down

0 comments on commit 694f497

Please sign in to comment.