Skip to content
Snippets Groups Projects
Commit 54e82c1b authored by Nicolas80's avatar Nicolas80
Browse files

* Adapted `impl FromStr for DbAccountId` so that it is the only one that does...

* 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
parent e8da3aa9
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment