Skip to content

Commit ec2c803

Browse files
committed
chore: fix format
1 parent 524a957 commit ec2c803

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

packages/core/src/pallets/xcm/nativeAsset.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
import type { TDestination, TNodeDotKsmWithRelayChains, TPapiTransaction } from "@paraspell/sdk";
1+
import type { TDestination, TNodeDotKsmWithRelayChains, TPapiTransaction } from "@paraspell/sdk"
22
import { Builder } from "@paraspell/sdk"
33
import type { KnownChainId } from "@polkadot-agent-kit/common"
44
import { getAllSupportedChains, getChainById } from "@polkadot-agent-kit/common"
55

6-
76
/**
87
* Builds an XCM transaction to transfer a native asset from one chain to another.
98
*

packages/llm/src/langchain/xcm.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
import { tool } from "@langchain/core/tools"
22
import type { KnownChainId } from "@polkadot-agent-kit/common"
33
import { getDecimalsByChainId, parseUnits } from "@polkadot-agent-kit/common"
4-
import {
5-
submitTxWithPolkadotSigner,
6-
xcmTransferNativeAsset
7-
} from "@polkadot-agent-kit/core"
4+
import { submitTxWithPolkadotSigner, xcmTransferNativeAsset } from "@polkadot-agent-kit/core"
85
import type { PolkadotSigner } from "polkadot-api/signer"
96
import type { z } from "zod"
107

packages/sdk/src/api.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,10 @@ describe("PolkadotApi", () => {
295295
})
296296

297297
it("should return the XCM transfer tool and call it with correct params", async () => {
298-
const tool = mockAgentPolkadotApi.xcmTransferNativeTool(mockSigner, "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY")
298+
const tool = mockAgentPolkadotApi.xcmTransferNativeTool(
299+
mockSigner,
300+
"5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY"
301+
)
299302
expect(tool).toBeDefined()
300303
expect(tool).toBe(mockXcmTool)
301304
})

0 commit comments

Comments
 (0)