Skip to content

Commit

Permalink
fix: convert position mint to pub key
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelessiet committed Jan 28, 2025
1 parent bede8fe commit 6a28bc4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/actions/orca/closeOrcaPosition.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { z } from "zod";
import type { Action } from "../../types";
import { orcaClosePosition } from "../../tools";
import { PublicKey } from "@solana/web3.js";

const closeOrcaPositionAction: Action = {
name: "CLOSE_ORCA_POSITION_ACTION",
Expand Down Expand Up @@ -36,7 +37,7 @@ const closeOrcaPositionAction: Action = {
try {
const signature = await orcaClosePosition(
agent,
input.positionMintAddress,
new PublicKey(input.positionMintAddress),
);

return {
Expand Down

0 comments on commit 6a28bc4

Please sign in to comment.