Skip to content

Commit

Permalink
use contract latest utxo table instead of contract info
Browse files Browse the repository at this point in the history
  • Loading branch information
MujkicA committed Feb 21, 2024
1 parent 5b5799d commit 14c8ac7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/fuel-core/src/database/genesis_progress.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use fuel_core_storage::{
},
column::Column,
structured_storage::TableWithBlueprint,
tables::ContractsInfo,
tables::ContractsLatestUtxo,
Mappable,
MerkleRoot,
Result,
Expand Down Expand Up @@ -185,7 +185,7 @@ impl Database {
pub fn genesis_loaded_contracts(
&self,
) -> impl Iterator<Item = Result<GenesisImportedContractId>> + '_ {
self.iter_all::<ContractsInfo>(None)
self.iter_all::<ContractsLatestUtxo>(None)
.map_ok(|(contract_id, _)| contract_id)
.map(|res| res.map_err(Into::into))
}
Expand Down

0 comments on commit 14c8ac7

Please sign in to comment.