Skip to content

Commit

Permalink
fix: getContractCallsQuote validation (#216)
Browse files Browse the repository at this point in the history
  • Loading branch information
w84april authored Sep 16, 2024
1 parent 19b7480 commit 7cf5027
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export const getContractCallsQuote = async (
}
})
if (
!isContractCallsRequestWithFromAmount(params) ||
!isContractCallsRequestWithFromAmount(params) &&
!isContractCallsRequestWithToAmount(params)
) {
throw new SDKError(
Expand Down

0 comments on commit 7cf5027

Please sign in to comment.