trident-template 0.10.0-rc.2

Trident is Rust based fuzzing framework for Solana programs written in Anchor.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use trident_idl_spec::Idl;

pub(crate) fn process_program_id(idl: &Idl) -> String {
    // if program ID is present, use it
    if !idl.address.is_empty() {
        idl.address.clone()
    } else {
        // if program ID is not present, use placeholder
        // We might be able to parse it form program, but it
        // might not be necesarry as newer versions of IDL will contain it
        "fill corresponding program ID here".to_string()
    }
}