[−][src]Function xpx_supercontracts_sdk::storage::storage_get
pub fn storage_get(file_name: &String) -> MultipleFunctionResult
Read file from Storage and return file data bytes.
File always located inside /root/supercontracts/
directory.
So it should be relative path like: path/to/my/file.json
If file not exist or empty function return empty array.
Examples
use xpx_supercontracts_sdk::storage::storage_get; let file_data = storage_get(&"some_file.json".to_string()); assert_eq!(file_data.unwrap(), vec![0]);