From 09b77cc973483e3b716ace3beb2315ec7b10df64 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 3 Dec 2024 19:35:32 -0500 Subject: [PATCH] Fix x -> ada swaps --- src/dex/splash.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dex/splash.ts b/src/dex/splash.ts index d757f4e..c15b221 100644 --- a/src/dex/splash.ts +++ b/src/dex/splash.ts @@ -183,7 +183,7 @@ export class Splash extends BaseDex { const walletUtxos: UTxO[] = await dataProvider.utxos( swapParameters[DatumParameterKey.Address] as string, swapParameters[DatumParameterKey.SwapInTokenPolicyId] !== '' - ? new Asset(DatumParameterKey.SwapInTokenPolicyId, DatumParameterKey.SwapInTokenAssetName) + ? new Asset(swapParameters.SwapInTokenPolicyId as string, swapParameters.SwapInTokenAssetName as string) : undefined ); const firstUtxo: UTxO = walletUtxos[0];