Skip to content

Commit

Permalink
remove remaining load_clvm call
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-o-how committed Jan 8, 2025
1 parent 08e956d commit e5ffe1e
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions chia/wallet/vc_wallet/vc_drivers.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
from chia_puzzles_py.programs import EXIGENT_METADATA_LAYER as EXIGENT_METADATA_LAYER_BYTES
from chia_puzzles_py.programs import P2_ANNOUNCED_DELEGATED_PUZZLE as P2_ANNOUNCED_DELEGATED_PUZZLE_BYTES
from chia_puzzles_py.programs import REVOCATION_LAYER as REVOCATION_LAYER_BYTES
from chia_puzzles_py.programs import STANDARD_VC_REVOCATION_PUZZLE
from chia_puzzles_py.programs import STD_PARENT_MORPHER as STD_PARENT_MORPHER_BYTES

from chia.types.blockchain_format.coin import Coin
Expand All @@ -21,7 +22,6 @@
from chia.util.streamable import Streamable, streamable
from chia.wallet.conditions import Condition, CreatePuzzleAnnouncement
from chia.wallet.lineage_proof import LineageProof
from chia.wallet.puzzles.load_clvm import load_clvm_maybe_recompile
from chia.wallet.puzzles.singleton_top_layer_v1_1 import (
SINGLETON_LAUNCHER,
SINGLETON_LAUNCHER_HASH,
Expand Down Expand Up @@ -59,11 +59,7 @@


# Standard brick puzzle uses the mods above
STANDARD_BRICK_PUZZLE: Program = load_clvm_maybe_recompile(
"standard_vc_backdoor_puzzle.clsp",
package_or_requirement="chia.wallet.vc_wallet.vc_puzzles",
include_standard_libraries=True,
).curry(
STANDARD_BRICK_PUZZLE: Program = Program.from_bytes(STANDARD_VC_REVOCATION_PUZZLE).curry(
SINGLETON_MOD_HASH,
Program.to(SINGLETON_LAUNCHER_HASH).get_tree_hash(),
EXTIGENT_METADATA_LAYER_HASH,
Expand Down

0 comments on commit e5ffe1e

Please sign in to comment.