pub fn unwrap_or_err<T>(
    val_opt: &Option<T>,
    err: ContractError
) -> Result<&T, ContractError>