diff --git a/zcash_client_sqlite/src/wallet.rs b/zcash_client_sqlite/src/wallet.rs index 9e5584375..a80d820b5 100644 --- a/zcash_client_sqlite/src/wallet.rs +++ b/zcash_client_sqlite/src/wallet.rs @@ -2613,7 +2613,7 @@ pub(crate) fn put_sent_output( :to_address, :to_account_id, :value, :memo) ON CONFLICT (tx, output_pool, output_index) DO UPDATE SET from_account_id = :from_account_id, - to_address = :to_address, + to_address = IFNULL(to_address, :to_address), to_account_id = IFNULL(to_account_id, :to_account_id), value = :value, memo = IFNULL(:memo, memo)",