Skip to content

Commit

Permalink
Tweak to get workflow to run.
Browse files Browse the repository at this point in the history
  • Loading branch information
blockiosaurus committed Jun 15, 2024
1 parent a822760 commit 6124e86
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions programs/mpl-core/src/processor/update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@ pub(crate) fn update<'a>(accounts: &'a [AccountInfo<'a>], args: UpdateV1Args) ->
dirty = true;
}
if let Some(new_name) = &args.new_name {
asset.name = new_name.clone();
asset.name.clone_from(new_name);
dirty = true;
}
if let Some(new_uri) = &args.new_uri {
asset.uri = new_uri.clone();
asset.uri.clone_from(new_uri);
dirty = true;
}
if dirty {
Expand Down Expand Up @@ -161,11 +161,11 @@ pub(crate) fn update_collection<'a>(
dirty = true;
}
if let Some(new_name) = &args.new_name {
collection.name = new_name.clone();
collection.name.clone_from(new_name);
dirty = true;
}
if let Some(new_uri) = &args.new_uri {
collection.uri = new_uri.clone();
collection.uri.clone_from(new_uri);
dirty = true;
}
if dirty {
Expand Down

0 comments on commit 6124e86

Please sign in to comment.