From afa73c269fb71d8cd08d4d1e6952cf084ab532dd Mon Sep 17 00:00:00 2001 From: Olivier Desenfans Date: Tue, 2 Apr 2024 17:02:33 +0200 Subject: [PATCH] Cleanup: SET_AP_TO_NONCE_OR_ZERO is already implemented This hint is already implemented as TX_NONCE. --- src/hints/unimplemented.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/hints/unimplemented.rs b/src/hints/unimplemented.rs index 9d3d348d..768e2f87 100644 --- a/src/hints/unimplemented.rs +++ b/src/hints/unimplemented.rs @@ -56,9 +56,6 @@ const PREPARE_PREIMAGE_VALIDATION_BOTTOM: &str = indoc! {r#" const HEIGHT_IS_ZERO_OR_LEN_NODE_PREIMAGE_IS_TWO: &str = "memory[ap] = 1 if ids.height == 0 or len(preimage[ids.node]) == 2 else 0"; -#[allow(unused)] -const SET_AP_TO_NONCE_OR_ZERO: &str = "memory[ap] = to_felt_or_relocatable(0 if tx.nonce is None else tx.nonce)"; - #[allow(unused)] const PREPARE_PREIMAGE_VALIDATION_NON_DETERMINISTIC_HASHES: &str = indoc! {r#" from starkware.python.merkle_tree import decode_node