Skip to content

Commit

Permalink
small tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
EdHastingsCasperAssociation committed Feb 12, 2024
1 parent 0c35486 commit b92ce80
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion node/src/components/contract_runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,8 @@ impl ContractRuntime {
let data_access_layer = Arc::clone(&self.data_access_layer);
let result = data_access_layer.genesis(genesis_request);
if result.is_success() {
if let Err(err) = self.engine_state.flush_environment() {
let flush_req = FlushRequest::new();
if let FlushResult::Failure(err) = data_access_layer.flush(flush_req) {
return GenesisResult::Failure(GenesisError::TrackingCopyError(
TrackingCopyError::Storage(err),
));
Expand Down

0 comments on commit b92ce80

Please sign in to comment.