Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,322 changes: 105 additions & 1,217 deletions chia/_tests/wallet/did_wallet/test_did.py

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion chia/_tests/wallet/nft_wallet/test_nft_wallet.py
Original file line number Diff line number Diff line change
Expand Up @@ -1284,7 +1284,7 @@ async def test_nft_transfer_nft_with_did(wallet_environments: WalletTestFramewor
async with did_wallet.wallet_state_manager.new_action_scope(
wallet_environments.tx_config, push=True
) as action_scope:
await did_wallet.transfer_did(wallet_1_ph, uint64(0), True, action_scope)
await did_wallet.transfer_did(wallet_1_ph, uint64(0), action_scope)

await wallet_environments.process_pending_states(
[
Expand Down
16 changes: 0 additions & 16 deletions chia/_tests/wallet/rpc/test_wallet_rpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,11 @@
DIDGetDID,
DIDGetMetadata,
DIDGetPubkey,
DIDGetRecoveryList,
DIDGetWalletName,
DIDMessageSpend,
DIDSetWalletName,
DIDTransferDID,
DIDUpdateMetadata,
DIDUpdateRecoveryIDs,
FungibleAsset,
GetNotifications,
GetPrivateKey,
Expand Down Expand Up @@ -1538,20 +1536,6 @@ async def test_did_endpoints(wallet_rpc_environment: WalletRpcTestEnvironment) -
# Create backup file
await wallet_1_rpc.create_did_backup_file(DIDCreateBackupFile(did_wallet_id_0))

await time_out_assert(5, check_mempool_spend_count, True, full_node_api, 1)
await farm_transaction_block(full_node_api, wallet_1_node)
# Update recovery list
update_res = await wallet_1_rpc.update_did_recovery_list(
DIDUpdateRecoveryIDs(
wallet_id=uint32(did_wallet_id_0), new_list=[did_id_0], num_verifications_required=uint64(1), push=True
),
DEFAULT_TX_CONFIG,
)
assert len(update_res.transactions) > 0
recovery_list_res = await wallet_1_rpc.get_did_recovery_list(DIDGetRecoveryList(did_wallet_id_0))
assert recovery_list_res.num_required == 1
assert recovery_list_res.recovery_list[0] == did_id_0

await time_out_assert(5, check_mempool_spend_count, True, full_node_api, 1)
await farm_transaction_block(full_node_api, wallet_1_node)

Expand Down
2 changes: 1 addition & 1 deletion chia/_tests/wallet/vc_wallet/test_vc_wallet.py
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,7 @@ async def test_self_revoke(wallet_environments: WalletTestFramework) -> None:
async with did_wallet.wallet_state_manager.new_action_scope(
wallet_environments.tx_config, push=True
) as action_scope:
await did_wallet.transfer_did(bytes32.zeros, uint64(0), False, action_scope)
await did_wallet.transfer_did(bytes32.zeros, uint64(0), action_scope)

await wallet_environments.process_pending_states(
[
Expand Down
Loading
Loading