wallet: remove unnecessary mut
Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
@@ -13,8 +13,8 @@ use crate::{
|
||||
use enostr::{NoteId, Pubkey, RelayPool};
|
||||
use nostrdb::{Ndb, NoteKey, Transaction};
|
||||
use notedeck::{
|
||||
get_wallet_for_mut, note::ZapTargetAmount, Accounts, GlobalWallet, Images, NoteAction,
|
||||
NoteCache, NoteZapTargetOwned, UnknownIds, ZapAction, ZapTarget, ZappingError, Zaps,
|
||||
get_wallet_for, note::ZapTargetAmount, Accounts, GlobalWallet, Images, NoteAction, NoteCache,
|
||||
NoteZapTargetOwned, UnknownIds, ZapAction, ZapTarget, ZappingError, Zaps,
|
||||
};
|
||||
use tracing::error;
|
||||
|
||||
@@ -106,7 +106,7 @@ fn execute_note_action(
|
||||
|
||||
match &zap_action {
|
||||
ZapAction::Send(target) => 'a: {
|
||||
let Some(wallet) = get_wallet_for_mut(accounts, global_wallet, sender.bytes())
|
||||
let Some(wallet) = get_wallet_for(accounts, global_wallet, sender.bytes())
|
||||
else {
|
||||
zaps.send_error(
|
||||
sender.bytes(),
|
||||
|
||||
Reference in New Issue
Block a user