mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 15:47:58 +00:00
BlockId removal: refactor: Backend::state_at (#12488)
* Minor naming improved * BlockId removal refactor: Backend::state_at * formatting
This commit is contained in:
committed by
GitHub
parent
dcd56b1ffd
commit
532dd5ecc2
@@ -258,12 +258,11 @@ where
|
||||
|
||||
let proof = self.api.extract_proof();
|
||||
|
||||
let state = self.backend.state_at(self.block_id)?;
|
||||
let parent_hash = self.parent_hash;
|
||||
let state = self.backend.state_at(&self.parent_hash)?;
|
||||
|
||||
let storage_changes = self
|
||||
.api
|
||||
.into_storage_changes(&state, parent_hash)
|
||||
.into_storage_changes(&state, self.parent_hash)
|
||||
.map_err(sp_blockchain::Error::StorageChanges)?;
|
||||
|
||||
Ok(BuiltBlock {
|
||||
|
||||
Reference in New Issue
Block a user