From 1140675c6a2c9da6341d2b1ea324784000ef3692 Mon Sep 17 00:00:00 2001 From: Miraland Labs Date: Tue, 9 Jul 2024 03:51:52 +0800 Subject: [PATCH] fix introspect_transaction current position --- program/src/mine.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/program/src/mine.rs b/program/src/mine.rs index 4fec55b..0a5e571 100644 --- a/program/src/mine.rs +++ b/program/src/mine.rs @@ -199,6 +199,7 @@ fn introspect_transaction(msg: &[u8]) -> Result { if program_id.ne(&ore_api::ID) { return Ok(false); } + c += 2; if let Ok(ix) = OreInstruction::try_from(read_u8(&mut c, msg)?) { if ix.ne(&OreInstruction::Mine) { return Ok(false);