[FRAME] RemoteExternalities
should only require Hasher
#3737
Labels
C1-mentor
A task where a mentor is available. Please indicate in the issue who the mentor could be.
C2-good-first-issue
A task for a first time contributor to become familiar with the Polkadot-SDK.
D1-medium
Can be fixed by a coder with good Rust knowledge but little knowledge of the codebase.
T1-FRAME
This PR/Issue is related to core FRAME, the framework.
RemoteExternalities
,OnlineConfig
andMode
(maybe more) types inframe-remote-externalities
requireBlock
while only using its Hasher 🙄 This makes it more difficult to use and is entirely unnecessary. Should be refactored to only requireHasher
/HashOutput
where needed.The only spot where we currently still need a
Header
, is on theBuilder
to access theChainApi
. IMHO this could be changed as well, since just loading the latest block hash should not require a header type, but it is outside of the scope for this issue.(This issue does require some Rust knowledge about how trait bounds work)
The text was updated successfully, but these errors were encountered: