Skip to content

Commit

Permalink
Merge pull request #3026 from PhyByte/develop
Browse files Browse the repository at this point in the history
fix: Rename file with typo in MVX plugin
  • Loading branch information
odilitime authored Jan 31, 2025
2 parents da9b8a3 + 9a9a781 commit 0395976
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/plugin-multiversx/src/actions/createToken.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
type Action,
} from "@elizaos/core";
import { WalletProvider } from "../providers/wallet";
import { validateMultiversxConfig } from "../enviroment";
import { validateMultiversxConfig } from "../environment";
import { createTokenSchema } from "../utils/schemas";
export interface CreateTokenContent extends Content {
tokenName: string;
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-multiversx/src/actions/swap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
} from "@elizaos/core";
import { WalletProvider } from "../providers/wallet";
import { GraphqlProvider } from "../providers/graphql";
import { validateMultiversxConfig } from "../enviroment";
import { validateMultiversxConfig } from "../environment";
import { swapSchema } from "../utils/schemas";
import { MVX_NETWORK_CONFIG } from "../constants";
import { swapQuery } from "../graphql/swapQuery";
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-multiversx/src/actions/transfer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
type Action,
} from "@elizaos/core";
import { WalletProvider } from "../providers/wallet";
import { validateMultiversxConfig } from "../enviroment";
import { validateMultiversxConfig } from "../environment";
import { transferSchema } from "../utils/schemas";
import { GraphqlProvider } from "../providers/graphql";
import { MVX_NETWORK_CONFIG } from "../constants";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { IAgentRuntime } from "@elizaos/core";
import { IAgentRuntime } from "@elizaos/core";
import { z } from "zod";

export const multiversxEnvSchema = z.object({
Expand All @@ -11,7 +11,7 @@ export const multiversxEnvSchema = z.object({
export type MultiversxConfig = z.infer<typeof multiversxEnvSchema>;

export async function validateMultiversxConfig(
runtime: IAgentRuntime,
runtime: IAgentRuntime
): Promise<MultiversxConfig> {
try {
const config = {
Expand All @@ -29,7 +29,7 @@ export async function validateMultiversxConfig(
.map((err) => `${err.path.join(".")}: ${err.message}`)
.join("\n");
throw new Error(
`MultiversX configuration validation failed:\n${errorMessages}`,
`MultiversX configuration validation failed:\n${errorMessages}`
);
}
throw error;
Expand Down

0 comments on commit 0395976

Please sign in to comment.