We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d6bca6 commit f074732Copy full SHA for f074732
api/src/common/utils.rs
@@ -23,12 +23,6 @@ pub const fn near_data_to_near_token(data: near_api_types::Data<u128>) -> NearTo
23
NearToken::from_yoctonear(data.data)
24
}
25
26
-// TODO: this is a temporary solution to check if an error is critical
27
-// we had previously a full scale support for that
28
-// but auto generated code doesn't support errors yet, so we would need to leave it as is for now
29
-// We default to false as we can't know if an error is critical or not without the types
30
-// so to keep it safe it's better to retry
31
-
32
pub fn to_retry_error<T, E: std::fmt::Debug + Send + Sync>(
33
err: SendRequestError<E>,
34
is_critical_t: impl Fn(&SendRequestError<E>) -> bool,
0 commit comments