From 7964caab1178e9b597c6a039aa9b40de45076e03 Mon Sep 17 00:00:00 2001 From: IKIGAI LABS XYZ <128307722+IkigaiLabsETH@users.noreply.github.com> Date: Fri, 20 Dec 2024 10:26:48 +0100 Subject: [PATCH] gm --- packages/plugin-nft-collections/src/actions/sweep-floor.ts | 4 +++- packages/plugin-nft-collections/src/types.ts | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/plugin-nft-collections/src/actions/sweep-floor.ts b/packages/plugin-nft-collections/src/actions/sweep-floor.ts index 7be549dac8..87f3535e80 100644 --- a/packages/plugin-nft-collections/src/actions/sweep-floor.ts +++ b/packages/plugin-nft-collections/src/actions/sweep-floor.ts @@ -40,7 +40,9 @@ export const sweepFloorAction: Action = { throw new Error("No valid collection address found in message"); } - const nftService = runtime.services.get("nft") as any as NFTService; + const nftService = runtime.services.get( + "nft" as any + ) as unknown as NFTService; if (!nftService) { throw new Error("NFT service not found"); } diff --git a/packages/plugin-nft-collections/src/types.ts b/packages/plugin-nft-collections/src/types.ts index 3d0f4c5d9a..966084d1d4 100644 --- a/packages/plugin-nft-collections/src/types.ts +++ b/packages/plugin-nft-collections/src/types.ts @@ -1,8 +1,8 @@ import { Service } from "@ai16z/eliza"; declare module "@ai16z/eliza" { - interface Service { - serviceType: "nft"; + interface ServiceTypeMap { + nft: Service & NFTService; } }