foundry_common::contracts

Function get_file_name

Source
pub fn get_file_name(id: &str) -> &str
Expand description

This returns the file name part, See get_contract_name

ยงExample

use foundry_common::*;
assert_eq!(
    "SafeTransferLibTest.json",
    get_file_name("SafeTransferLibTest.json:SafeTransferLibTest")
);