diff --git a/crates/sovereign-sdk/full-node/db/sov-db/src/ledger_db/mod.rs b/crates/sovereign-sdk/full-node/db/sov-db/src/ledger_db/mod.rs index d0d7bc6be..3bcd9a02b 100644 --- a/crates/sovereign-sdk/full-node/db/sov-db/src/ledger_db/mod.rs +++ b/crates/sovereign-sdk/full-node/db/sov-db/src/ledger_db/mod.rs @@ -318,8 +318,7 @@ impl SharedLedgerOps for LedgerDB { let mut schema_batch = SchemaBatch::new(); schema_batch - .put::(&l1_height, &new_range) - .unwrap(); + .put::(&l1_height, &new_range)?; self.db.write_schemas(schema_batch)?; Ok(()) @@ -379,8 +378,7 @@ impl SharedLedgerOps for LedgerDB { let mut schema_batch = SchemaBatch::new(); schema_batch - .put::(&height, &status) - .unwrap(); + .put::(&height, &status)?; self.db.write_schemas(schema_batch)?; Ok(()) @@ -494,8 +492,7 @@ impl ProverLedgerOps for LedgerDB { let mut schema_batch = SchemaBatch::new(); schema_batch - .put::(&(), &l1_height) - .unwrap(); + .put::(&(), &l1_height)?; self.db.write_schemas(schema_batch)?; Ok(())