Skip to content

Commit

Permalink
ruff fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-o-how committed Jan 2, 2025
1 parent 49aebda commit 71ae4b2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
4 changes: 1 addition & 3 deletions chia/_tests/wallet/test_singleton.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,9 @@
from chia.types.blockchain_format.sized_bytes import bytes32
from chia.util.condition_tools import parse_sexp_to_conditions
from chia.wallet.conditions import AssertPuzzleAnnouncement
from chia.wallet.puzzles.load_clvm import load_clvm
from chia.wallet.puzzles.singleton_top_layer import SINGLETON_MOD, SINGLETON_LAUNCHER, P2_SINGLETON_MOD
from chia.wallet.puzzles.singleton_top_layer import P2_SINGLETON_MOD, SINGLETON_LAUNCHER, SINGLETON_MOD

LAUNCHER_PUZZLE = SINGLETON_LAUNCHER
P2_SINGLETON_MOD = P2_SINGLETON_MOD

LAUNCHER_PUZZLE_HASH = LAUNCHER_PUZZLE.get_tree_hash()
SINGLETON_MOD_HASH = SINGLETON_MOD.get_tree_hash()
Expand Down
6 changes: 3 additions & 3 deletions chia/_tests/wallet/test_singleton_lifecycle_fast.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

from chia._tests.clvm.coin_store import BadSpendBundleError, CoinStore, CoinTimestamp
from chia.consensus.default_constants import DEFAULT_CONSTANTS
from chia.pools.pool_puzzles import POOL_MEMBER_MOD
from chia.pools.pool_puzzles import POOL_WAITING_ROOM_MOD as POOL_WAITINGROOM_MOD
from chia.types.blockchain_format.coin import Coin
from chia.types.blockchain_format.program import Program
from chia.types.blockchain_format.serialized_program import SerializedProgram
Expand All @@ -16,11 +18,9 @@
from chia.types.condition_opcodes import ConditionOpcode
from chia.util.ints import uint32, uint64
from chia.wallet.conditions import AssertCoinAnnouncement
from chia.wallet.puzzles.load_clvm import load_clvm
from chia.wallet.puzzles.singleton_top_layer import P2_SINGLETON_MOD, SINGLETON_LAUNCHER, SINGLETON_MOD
from chia.wallet.util.debug_spend_bundle import debug_spend_bundle
from chia.wallet.wallet_spend_bundle import WalletSpendBundle
from chia.wallet.puzzles.singleton_top_layer import SINGLETON_MOD, SINGLETON_LAUNCHER, P2_SINGLETON_MOD
from chia.pools.pool_puzzles import POOL_MEMBER_MOD, POOL_WAITING_ROOM_MOD as POOL_WAITINGROOM_MOD

LAUNCHER_PUZZLE = SINGLETON_LAUNCHER

Expand Down
2 changes: 1 addition & 1 deletion chia/pools/pool_wallet.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
from typing_extensions import final

from chia.pools.pool_config import PoolWalletConfig, load_pool_config, update_pool_config
from chia.wallet.puzzles.singleton_top_layer import SINGLETON_LAUNCHER
from chia.pools.pool_puzzles import (
create_absorb_spend,
create_full_puzzle,
Expand Down Expand Up @@ -45,6 +44,7 @@
from chia.util.ints import uint32, uint64, uint128
from chia.wallet.conditions import AssertCoinAnnouncement, Condition, ConditionValidTimes
from chia.wallet.derive_keys import find_owner_sk
from chia.wallet.puzzles.singleton_top_layer import SINGLETON_LAUNCHER
from chia.wallet.transaction_record import TransactionRecord
from chia.wallet.util.transaction_type import TransactionType
from chia.wallet.util.tx_config import DEFAULT_TX_CONFIG, TXConfig
Expand Down

0 comments on commit 71ae4b2

Please sign in to comment.