Skip to content

Commit

Permalink
add missing metadata allowlist
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyLi28 committed Apr 24, 2024
1 parent 771ee63 commit 6906bd7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions programs/mmm/src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -832,6 +832,11 @@ pub fn check_allowlists_for_mpl_core<'info>(
return Err(MMMErrorCode::InvalidAllowLists.into());
}
}
ALLOWLIST_KIND_METADATA => {
// Do not validate URI here, as we already did it above.
// These checks are separate since allowlist values are unioned together.
continue;
}
_ => {
return Err(MMMErrorCode::InvalidAllowLists.into());
}
Expand Down

0 comments on commit 6906bd7

Please sign in to comment.