From 64611618debd6d67adbf0f3a2a3cd88629df5cb7 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sat, 3 Dec 2022 22:55:39 -0500 Subject: [PATCH] *Update to use NodeCache api --- src/modules/plugins/rpc.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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, }; }, });