Skip to content

Commit

Permalink
gm
Browse files Browse the repository at this point in the history
  • Loading branch information
IkigaiLabsETH committed Dec 20, 2024
1 parent 801058b commit 7964caa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion packages/plugin-nft-collections/src/actions/sweep-floor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down
4 changes: 2 additions & 2 deletions packages/plugin-nft-collections/src/types.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Service } from "@ai16z/eliza";

declare module "@ai16z/eliza" {
interface Service {
serviceType: "nft";
interface ServiceTypeMap {
nft: Service & NFTService;
}
}

Expand Down

0 comments on commit 7964caa

Please sign in to comment.