Skip to content

Commit

Permalink
fix: use world dispatcher snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
glihm committed Jun 13, 2024
1 parent a62e872 commit f05cbe7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/spawn-and-move/src/mock_token.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ mod mock_token {
use dojo_examples::models::{MockToken};
use starknet::{ContractAddress, get_caller_address};

fn dojo_init(world: IWorldDispatcher) {
fn dojo_init(world: @IWorldDispatcher) {
let account: ContractAddress = get_caller_address();

set!(world, MockToken { account: account, amount: 1000 });
Expand Down

0 comments on commit f05cbe7

Please sign in to comment.