Skip to content

Commit f074732

Browse files
authored
chore: clean up comments in utils.rs
Removed temporary comments regarding error handling.
1 parent 9d6bca6 commit f074732

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

api/src/common/utils.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,6 @@ pub const fn near_data_to_near_token(data: near_api_types::Data<u128>) -> NearTo
2323
NearToken::from_yoctonear(data.data)
2424
}
2525

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-
3226
pub fn to_retry_error<T, E: std::fmt::Debug + Send + Sync>(
3327
err: SendRequestError<E>,
3428
is_critical_t: impl Fn(&SendRequestError<E>) -> bool,

0 commit comments

Comments
 (0)