don't expose mutable access to UserAccount

it's not preferable that the full mutable access is available to
`ZapWallet`, but this PR is becoming too big already

Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
kernelkind
2025-07-01 14:50:32 -04:00
parent 61e47323ab
commit f0158f71b2
5 changed files with 12 additions and 13 deletions

View File

@@ -98,7 +98,7 @@ fn execute_note_action(
router_action = Some(RouterAction::route_to(Route::quote(note_id)));
}
NoteAction::Zap(zap_action) => {
let cur_acc = accounts.get_selected_account_mut();
let cur_acc = accounts.get_selected_account();
let sender = cur_acc.key.pubkey;