Skip to content

Commit

Permalink
Leverage serialized program for nonce creation in VCWallet's revoke_vc (
Browse files Browse the repository at this point in the history
#18020)

Leverage serialized program for nonce creation in VCWallet's revoke_vc.
  • Loading branch information
AmineKhaldi committed May 22, 2024
1 parent b49eb0a commit 65e5ad6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chia/wallet/vc_wallet/vc_wallet.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ async def revoke_vc(
coins.update(await self.standard_wallet.select_coins(fee, tx_config.coin_selection_config))
sorted_coins: List[Coin] = sorted(coins, key=Coin.name)
sorted_coin_list: List[List[Union[bytes32, uint64]]] = [coin_as_list(c) for c in sorted_coins]
nonce: bytes32 = Program.to(sorted_coin_list).get_tree_hash()
nonce: bytes32 = SerializedProgram.to(sorted_coin_list).get_tree_hash()
vc_announcement: AssertCoinAnnouncement = AssertCoinAnnouncement(asserted_id=vc.coin.name(), asserted_msg=nonce)

# Assemble final bundle
Expand Down

0 comments on commit 65e5ad6

Please sign in to comment.