1
1
use core :: poseidon :: poseidon_hash_span;
2
2
use dojo :: model :: {ModelStorage };
3
3
use dojo :: world :: storage :: WorldStorage ;
4
- use pixelaw :: core :: events :: { QueueScheduled };
4
+ use pixelaw :: core :: events :: {QueueScheduled };
5
5
use pixelaw :: core :: models :: area :: {BoundsTraitImpl , RTreeNodePackableImpl , RTreeTraitImpl };
6
6
use pixelaw :: core :: models :: queue :: {QueueItem };
7
7
use starknet :: {ContractAddress , syscalls :: {call_contract_syscall}};
@@ -21,7 +21,7 @@ pub fn schedule_queue(
21
21
. span (),
22
22
);
23
23
24
- let queueItem = QueueItem {id , valid : true };
24
+ let queueItem = QueueItem { id , valid : true };
25
25
world . write_model (@ queueItem);
26
26
27
27
// Emit the event, so an external scheduler can pick it up
@@ -36,7 +36,7 @@ pub fn process_queue(
36
36
called_system : ContractAddress ,
37
37
selector : felt252 ,
38
38
calldata : Span <felt252 >,
39
- ) {
39
+ ) {
40
40
// A quick check on the timestamp so we know it's not too early for this one
41
41
assert! (timestamp <= starknet :: get_block_timestamp (), " timestamp still in the future" );
42
42
@@ -46,7 +46,6 @@ pub fn process_queue(
46
46
. span (),
47
47
);
48
48
49
-
50
49
// Only valid when the queue item was found by the hash
51
50
assert! (calculated_id == id , " Invalid Id" );
52
51
@@ -58,6 +57,4 @@ pub fn process_queue(
58
57
let queueItem: QueueItem = world . read_model (id );
59
58
60
59
world . erase_model (@ queueItem);
61
-
62
-
63
60
}
0 commit comments