Skip to content
Snippets Groups Projects
  • Nicolas80's avatar
    54e82c1b
    * Adapted `impl FromStr for DbAccountId` so that it is the only one that does... · 54e82c1b
    Nicolas80 authored
    * Adapted `impl FromStr for DbAccountId` so that it is the only one that does the conversion from &str to DbAccountId
    ** It provides error with the "raw" string that couldn't be parsed
    ** All other methods use that one now
    ** In order to be able to resolve the issue from !48; we now remove any surrounding double quotes from the string (if present) before parsing into a DbAccountId
    * Replaced `impl From<String> for DbAccountId` with `impl TryFrom<String> for DbAccountId` and adapted the code to use it.
    * Made sure `impl sea_orm::TryGetable for DbAccountId` also use the correct `DbAccountId::from_str` that will now provide the detailed error message
    54e82c1b
    History
    * Adapted `impl FromStr for DbAccountId` so that it is the only one that does...
    Nicolas80 authored
    * Adapted `impl FromStr for DbAccountId` so that it is the only one that does the conversion from &str to DbAccountId
    ** It provides error with the "raw" string that couldn't be parsed
    ** All other methods use that one now
    ** In order to be able to resolve the issue from !48; we now remove any surrounding double quotes from the string (if present) before parsing into a DbAccountId
    * Replaced `impl From<String> for DbAccountId` with `impl TryFrom<String> for DbAccountId` and adapted the code to use it.
    * Made sure `impl sea_orm::TryGetable for DbAccountId` also use the correct `DbAccountId::from_str` that will now provide the detailed error message