pathfinder icon indicating copy to clipboard operation
pathfinder copied to clipboard

Implement a way to pass RPC version information to RPC handlers

Open sistemd opened this issue 6 months ago • 0 comments

Currently, the RPC handlers have the following signature:

async fn handler(context: RpcContext, input: impl serde::Deserialize) -> impl SerializeForVersion;

This doesn't allow the handlers to react differently based on the RPC version. Instead it should be more like:

async fn handler(context: RpcContext, version: RpcVersion, input: impl serde::Deserialize) -> impl SerializeForVersion;

This is needed before moving on to https://github.com/eqlabs/pathfinder/issues/2047.

sistemd avatar Aug 14 '24 23:08 sistemd