diff --git a/src/modules/plugins/rpc.ts b/src/modules/plugins/rpc.ts index ad64413..d005a1f 100644 --- a/src/modules/plugins/rpc.ts +++ b/src/modules/plugins/rpc.ts @@ -4,6 +4,7 @@ import { PluginAPI, RPCBroadcastRequest, RPCBroadcastResponse, + RPCCacheItem, RPCRequest, RPCResponse, } from "@lumeweb/relay-types"; @@ -58,8 +59,8 @@ const plugin: Plugin = { return { data: true, - ...cache[req]?.value, - signature: cache[req]?.signature, + ...cache.get(req)?.value, + signature: cache.get(req)?.signature, }; }, });