chore: remove an intermediate allocation in ExecutionOutcome (#10900)

This commit is contained in:
DaniPopes
2024-09-13 21:07:13 +02:00
committed by GitHub
parent 96854f9f0f
commit 974926f2d9
3 changed files with 6 additions and 8 deletions

View File

@ -107,7 +107,7 @@ impl<C: ChainSpecParser<ChainSpec = ChainSpec>> Command<C> {
Default::default(),
)?;
let alloc = &self.env.chain.genesis().alloc;
insert_genesis_state(&provider_rw, alloc.len(), alloc.iter())?;
insert_genesis_state(&provider_rw, alloc.iter())?;
}
StageEnum::AccountHashing => {
tx.clear::<tables::HashedAccounts>()?;