From 984972c126ff6b58c7cf2053c6e77d555e8dd0a8 Mon Sep 17 00:00:00 2001 From: Rhys Lloyd Date: Tue, 7 Jul 2026 18:50:47 -0700 Subject: [PATCH] cheat --- card_game/src/lib.rs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/card_game/src/lib.rs b/card_game/src/lib.rs index 8cb1887..38e38d5 100644 --- a/card_game/src/lib.rs +++ b/card_game/src/lib.rs @@ -700,10 +700,13 @@ where state: game.state.clone(), instruction: instruction.clone(), }); - game.state - .stage_instruction(&mut stats.inner, &config.inner, instruction) - .unwrap() - .commit(); + // This might be considered cheaing a bit, we're pre-approving the instruction here by accessing the inner fields. + G::process_instruction(StagedInstruction { + game: &mut game.state, + stats: &mut stats.inner, + config: &config.inner, + instruction, + }); } } }