We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 70a666e + 391826a commit 5e46de7Copy full SHA for 5e46de7
src/account.rs
@@ -584,6 +584,11 @@ impl<P: WalletPersister> NgAccount<P> {
584
pub fn remove_tag(&self, target_tag: &str, rename_to: Option<&str>) -> anyhow::Result<()> {
585
self.meta_storage.remove_tag(target_tag)?;
586
let utxos = self.utxos()?;
587
+ if let Some(new_tag) = rename_to
588
+ && !new_tag.is_empty()
589
+ {
590
+ self.meta_storage.add_tag(new_tag)?;
591
+ }
592
for output in utxos {
593
match &output.tag {
594
None => {}
0 commit comments