add stake and vote errors (#5814)

* add stake errors

* remove self from type_of

* sheesh

* better

* add stake errors

* update wallet error handling

* fixup
This commit is contained in:
Rob Walker
2019-09-06 10:55:03 -07:00
committed by GitHub
parent e5f902369c
commit 4a20c2aa1b
10 changed files with 222 additions and 100 deletions

View File

@ -14,7 +14,7 @@ pub enum SystemError {
}
impl<T> DecodeError<T> for SystemError {
fn type_of(&self) -> &'static str {
fn type_of() -> &'static str {
"SystemError"
}
}