pub fn read_file(&self, file_path: &str) -> Result<String, Error> {
        let full_path = PathBuf::from(&self.home_path).join(file_path);
        let res = fs::read_to_string(full_path)?;
        Ok(res)
    }
/**
       Read the content at a file path relative to the chain home
       directory, and return the result as a string.

       This is not efficient but is sufficient for testing purposes.
    */
Read the content at a file path relative to the chain home
directory, and return the result as a string.

This is not efficient but is sufficient for testing purposes.
Read the content at a file path relative to the chain home directory and return the result as a string . This is not efficient but is sufficient for testing purposes .
pub fn read_file(&self, file_path: &str) -> Result<String, Error> {
        let full_path = PathBuf::from(&self.home_path).join(file_path);
        let res = fs::read_to_string(full_path)?;
        Ok(res)
    }
pub fn read_file ( & self , file_path : & str ) -> Result < String , Error > { let full_path = PathBuf :: from ( & self . home_path ) . join ( file_path ) ; let res = fs :: read_to_string ( full_path ) ? ; Ok ( res ) }
Read the content at a file path relative to the chain home
directory, and return the result as a string.
Read the content at a file path relative to the chain home directory and return the result as a string .
&self
file_path
&str
&self
file_path
&str