From a3099b03c4251c2eaf2086aba676929455c92d4d Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Wed, 24 Jan 2024 22:09:06 +0100 Subject: [PATCH] Remove no longer needed remove_singleton_truth_wrapper (#17383) Remove no longer needed remove_singleton_truth_wrapper. --- chia/wallet/puzzles/singleton_top_layer.py | 5 ----- chia/wallet/puzzles/singleton_top_layer_v1_1.py | 5 ----- 2 files changed, 10 deletions(-) diff --git a/chia/wallet/puzzles/singleton_top_layer.py b/chia/wallet/puzzles/singleton_top_layer.py index 9deab6717a12..4afc93338e0e 100644 --- a/chia/wallet/puzzles/singleton_top_layer.py +++ b/chia/wallet/puzzles/singleton_top_layer.py @@ -183,11 +183,6 @@ def adapt_inner_puzzle_hash_to_singleton(inner_puzzle_hash: bytes32) -> bytes32: return puzzle.get_tree_hash_precalc(inner_puzzle_hash) -def remove_singleton_truth_wrapper(puzzle: Program) -> Program: - inner_puzzle = puzzle.rest().first().rest() - return inner_puzzle - - # Take standard coin and amount -> launch conditions & launcher coin solution def launch_conditions_and_coinsol( coin: Coin, diff --git a/chia/wallet/puzzles/singleton_top_layer_v1_1.py b/chia/wallet/puzzles/singleton_top_layer_v1_1.py index 20d4d13b984a..bcbf2409d761 100644 --- a/chia/wallet/puzzles/singleton_top_layer_v1_1.py +++ b/chia/wallet/puzzles/singleton_top_layer_v1_1.py @@ -172,11 +172,6 @@ def generate_launcher_coin(coin: Coin, amount: uint64) -> Coin: return Coin(coin.name(), SINGLETON_LAUNCHER_HASH, amount) -def remove_singleton_truth_wrapper(puzzle: Program) -> Program: - inner_puzzle: Program = puzzle.rest().first().rest() - return inner_puzzle - - # Take standard coin and amount -> launch conditions & launcher coin solution def launch_conditions_and_coinsol( coin: Coin,