feat : add storage_root provider function for account (#9659)

Co-authored-by: Roman Krasiuk <rokrassyuk@gmail.com>
This commit is contained in:
nk_ysg
2024-08-02 15:19:12 +08:00
committed by GitHub
parent db2ece8d08
commit 44028076ff
15 changed files with 202 additions and 27 deletions

View File

@ -33,6 +33,14 @@ pub enum StorageRootError {
Database(#[from] DatabaseError),
}
impl From<StorageRootError> for DatabaseError {
fn from(err: StorageRootError) -> Self {
match err {
StorageRootError::Database(err) => err,
}
}
}
/// State proof errors.
#[derive(Error, Debug, PartialEq, Eq, Clone)]
pub enum StateProofError {