fix(rpc-provider): state_root delegates to stub that always returns zero (#22610)

This commit is contained in:
MagicJoshh
2026-02-27 08:23:57 +05:30
committed by GitHub
parent 3fddefbd38
commit cbc416b82a

View File

@@ -1166,7 +1166,7 @@ where
Node: NodeTypes,
{
fn state_root(&self, hashed_state: HashedPostState) -> Result<B256, ProviderError> {
self.state_root_from_nodes(TrieInput::from_state(hashed_state))
self.state_root_with_updates(hashed_state).map(|(root, _)| root)
}
fn state_root_from_nodes(&self, _input: TrieInput) -> Result<B256, ProviderError> {