Function near_contract_tools::utils::prefix_key
source · Expand description
Concatenate bytes to form a key. Useful for generating storage keys.
Examples
use near_contract_tools::utils::prefix_key;
assert_eq!(prefix_key(b"p", b"key"), b"pkey".to_vec());