From 7cf5027dc4b2f107278009e08181fa3fef6bc1d2 Mon Sep 17 00:00:00 2001 From: Daniil Polienko <32621609+w84april@users.noreply.github.com> Date: Mon, 16 Sep 2024 09:17:07 +0300 Subject: [PATCH] fix: getContractCallsQuote validation (#216) --- src/services/api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/api.ts b/src/services/api.ts index 6e1d88bd..70ed44b0 100644 --- a/src/services/api.ts +++ b/src/services/api.ts @@ -153,7 +153,7 @@ export const getContractCallsQuote = async ( } }) if ( - !isContractCallsRequestWithFromAmount(params) || + !isContractCallsRequestWithFromAmount(params) && !isContractCallsRequestWithToAmount(params) ) { throw new SDKError(