Skip to content

Commit

Permalink
chore: update model after state changes in function
Browse files Browse the repository at this point in the history
  • Loading branch information
0xibs committed Feb 6, 2025
1 parent 62bfaa4 commit 5e3d77b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions onchain/src/systems/game_actions.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,9 @@ pub mod GameActions {
},
_ => panic!("Invalid number of players"),
};

// Update the game state in the world
world.write_model(@game);
}

fn move(ref self: ContractState, pos: felt252, color: u8) {
Expand Down

0 comments on commit 5e3d77b

Please sign in to comment.