@@ -290,23 +290,11 @@ pub async fn send_contact_request_with_proof(
290290 source : Box :: new ( e) ,
291291 } ) ?;
292292
293- // Step 5: Stage a PlatformWalletChangeSet capturing the sent contact request
294- // and the new DashPay contact account, then persist so the delta is
295- // durably stored.
296- //
297- // `register_contact_account()` (called inside `send_contact_request`)
298- // creates a DashpayReceivingFunds managed account in memory. Record
299- // its initial `last_revealed` index so the key-wallet changeset
300- // reflects the full delta.
301- let kw_account_cs = dash_sdk:: dpp:: key_wallet:: changeset:: AccountChangeSet {
302- last_revealed : BTreeMap :: from ( [ ( 0u32 , 0u32 ) ] ) ,
303- ..Default :: default ( )
304- } ;
293+ // Step 5: Stage a PlatformWalletChangeSet capturing the sent contact request.
294+ // TODO: re-wire persistence after changeset migration
295+ // key_wallet::changeset (AccountChangeSet, WalletChangeSet) was removed from dashcore.
296+ // The `wallet` field no longer exists on PlatformWalletChangeSet.
305297 let changeset = PlatformWalletChangeSet {
306- wallet : Some ( dash_sdk:: dpp:: key_wallet:: changeset:: WalletChangeSet {
307- accounts : Some ( kw_account_cs) ,
308- ..Default :: default ( )
309- } ) ,
310298 contacts : Some ( ContactChangeSet {
311299 sent_requests : BTreeMap :: from ( [ (
312300 ( sender_id, to_identity_id) ,
@@ -454,24 +442,14 @@ pub async fn accept_contact_request(
454442 source : Box :: new ( e) ,
455443 } ) ?;
456444
457- // Stage a PlatformWalletChangeSet capturing the reciprocal sent request,
458- // the newly established contact, and the new DashPay contact account.
459- //
460- // `register_contact_account()` (called inside `send_contact_request`) creates
461- // a DashpayReceivingFunds managed account in memory. Record its initial
462- // `last_revealed` index so the key-wallet changeset reflects the full delta.
445+ // Stage a PlatformWalletChangeSet capturing the reciprocal sent request and the newly established contact.
446+ // TODO: re-wire persistence after changeset migration
447+ // key_wallet::changeset (AccountChangeSet, WalletChangeSet) was removed from dashcore.
448+ // The `wallet` field no longer exists on PlatformWalletChangeSet.
463449 let mut established = BTreeSet :: new ( ) ;
464450 established. insert ( ( our_identity_id, from_identity_id) ) ;
465451
466- let kw_account_cs = dash_sdk:: dpp:: key_wallet:: changeset:: AccountChangeSet {
467- last_revealed : BTreeMap :: from ( [ ( 0u32 , 0u32 ) ] ) ,
468- ..Default :: default ( )
469- } ;
470452 let changeset = PlatformWalletChangeSet {
471- wallet : Some ( dash_sdk:: dpp:: key_wallet:: changeset:: WalletChangeSet {
472- accounts : Some ( kw_account_cs) ,
473- ..Default :: default ( )
474- } ) ,
475453 contacts : Some ( ContactChangeSet {
476454 sent_requests : BTreeMap :: from ( [ (
477455 ( our_identity_id, from_identity_id) ,
0 commit comments