fix: sealed header should not be immutable borrowed (#6456)

This commit is contained in:
yjh
2024-02-08 03:26:26 +08:00
committed by GitHub
parent 7a57d89575
commit 29e8aab08a
44 changed files with 464 additions and 385 deletions

View File

@ -128,7 +128,11 @@ impl Case for BlockchainTestCase {
// Insert state hashes into the provider based on the expected state root.
let last_block = last_block.unwrap_or_default();
provider
.insert_hashes(0..=last_block.number, last_block.hash, *expected_state_root)
.insert_hashes(
0..=last_block.number,
last_block.hash(),
*expected_state_root,
)
.map_err(|err| Error::RethError(err.into()))?;
}
_ => return Err(Error::MissingPostState),