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(