Skip to content

Commit

Permalink
Fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
xgreenx committed May 15, 2024
1 parent 8b8eece commit bc25f4d
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions bin/fuel-core/src/cli/snapshot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,13 @@ mod tests {

use std::iter::repeat_with;

use fuel_core::fuel_core_graphql_api::storage::transactions::{
OwnedTransactionIndexKey,
OwnedTransactions,
TransactionStatuses,
use fuel_core::{
fuel_core_graphql_api::storage::transactions::{
OwnedTransactionIndexKey,
OwnedTransactions,
TransactionStatuses,
},
producer::ports::BlockProducerDatabase,
};
use fuel_core_chain_config::{
AddTable,
Expand Down Expand Up @@ -765,6 +768,12 @@ mod tests {
.unwrap()
.clone();
let contract_id = randomly_chosen_contract.contract_id;
let mut latest_block = original_state.last_block.unwrap();
latest_block.blocks_root = db
.db
.on_chain()
.block_header_merkle_root(&latest_block.block_height)
.unwrap();
db.flush();

// when
Expand All @@ -786,7 +795,7 @@ mod tests {
coins: vec![],
messages: vec![],
contracts: vec![randomly_chosen_contract],
last_block: original_state.last_block,
last_block: Some(latest_block),
}
);

Expand Down

0 comments on commit bc25f4d

Please sign in to comment.