Skip to content

Commit

Permalink
Self-review
Browse files Browse the repository at this point in the history
  • Loading branch information
xgreenx committed Oct 11, 2024
1 parent d843cb5 commit bb819bf
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions crates/fuel-core/src/database.rs
Original file line number Diff line number Diff line change
Expand Up @@ -236,13 +236,6 @@ where
Err(GenesisDatabase::new(self.into_inner().data))
}
}

/// !!!! WARNING !!!!
/// This method is unsafe because it doesn't check if the height is already set.
/// This allows overriding the genesis state with a new one.
pub fn unsafe_into_genesis(self) -> GenesisDatabase<Description> {
GenesisDatabase::new(self.into_inner().data)
}
}

impl<Description, Stage> Database<Description, Stage>
Expand Down

0 comments on commit bb819bf

Please sign in to comment.