v0.1.0-pre.009
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// file: kb-program-ids/src/programs.rs
|
||||
// version: 1
|
||||
// version: 2
|
||||
|
||||
//! Enumerable canonical program registry.
|
||||
|
||||
@@ -65,7 +65,7 @@ mod tests {
|
||||
assert!(codes.insert(entry.code()));
|
||||
assert!(program_ids.insert(entry.program_id()));
|
||||
}
|
||||
assert_eq!(crate::registered_program_ids().len(), 32);
|
||||
assert_eq!(crate::registered_program_ids().len(), 33);
|
||||
}
|
||||
|
||||
#[test]
|
||||
@@ -122,8 +122,8 @@ mod tests {
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn spl_primitives_are_registered_without_joining_native_surfaces() {
|
||||
let spl_program_ids = [
|
||||
fn protocol_primitives_are_registered_without_joining_native_surfaces() {
|
||||
let protocol_program_ids = [
|
||||
crate::SPL_MEMO_V1_PROGRAM_ID,
|
||||
crate::SPL_MEMO_V3_PROGRAM_ID,
|
||||
crate::SPL_MEMO_V4_PROGRAM_ID,
|
||||
@@ -131,8 +131,9 @@ mod tests {
|
||||
crate::SPL_TOKEN_2022_PROGRAM_ID,
|
||||
crate::SPL_TOKEN_2022_ELGAMAL_REGISTRY_PROGRAM_ID,
|
||||
crate::ASSOCIATED_TOKEN_PROGRAM_ID,
|
||||
crate::METADATA_METAPLEX_TOKEN_METADATA_PROGRAM_ID,
|
||||
];
|
||||
for program_id in spl_program_ids {
|
||||
for program_id in protocol_program_ids {
|
||||
assert!(crate::find_registered_program_id(program_id).is_some());
|
||||
assert!(
|
||||
!crate::native_program_ids()
|
||||
|
||||
Reference in New Issue
Block a user