Skip to content
Snippets Groups Projects

Draft: Resolve "Error: Base 58 requirement is violated"

Open Nicolas80 requested to merge 48-error-base-58-requirement-is-violated into master
1 unresolved thread
1 file
+ 4
1
Compare changes
  • Side-by-side
  • Inline
@@ -134,7 +134,10 @@ impl sea_orm::TryGetable for DbAccountId {
@@ -134,7 +134,10 @@ impl sea_orm::TryGetable for DbAccountId {
.try_get_by(idx)
.try_get_by(idx)
.map_err(|e| TryGetError::Null(e.to_string()))?;
.map_err(|e| TryGetError::Null(e.to_string()))?;
Ok(DbAccountId(AccountId::from_str(&value).map_err(|e| {
Ok(DbAccountId(AccountId::from_str(&value).map_err(|e| {
TryGetError::DbErr(DbErr::Custom(e.to_string()))
TryGetError::DbErr(DbErr::Custom(format!(
 
"Cannot parse DbAccountId for string '{}' - error: {}",
 
&value, e
 
)))
})?))
})?))
}
}
}
}
Loading